1
0
mirror of https://github.com/django/django.git synced 2025-02-27 11:05:12 +00:00
Loic Bistuer eb82fb0a9d Refactored color_style() and no_style() to improve testability. Refs .
This includes the following improvements:

- The type of the style object is now called 'Style' rather than 'dummy'.
- The new make_style() function allows generating a Style object directly
  from a config string. Before the only way to get a style object was
  through the environ and it also required that the terminal supported
  colors which isn't necessarily the case when testing.
- The output of no_style() is now cached with @lru_cache.
- The output of no_style() now has the same set of attributes as the
  other Style objects. Previously it allowed anything to pass through
  with __getattr__.
2014-10-22 11:27:00 +07:00
..
2014-10-08 18:10:50 -04:00
2014-10-08 05:11:09 +07:00
2014-08-18 13:44:10 -04:00
2014-09-29 08:13:40 -04:00
2014-10-15 16:36:11 -04:00
2014-09-24 06:32:42 -04:00
2014-09-29 08:13:40 -04:00
2014-09-09 20:55:57 +02:00