Permalink
Browse files

Fixed all E261 warnings

  • Loading branch information...
1 parent 2a03a9a commit 3bc0d46a840f17dce561daca8a6b8690b2cf5d0a @coagulant coagulant committed with timgraham Nov 2, 2013
Showing with 647 additions and 647 deletions.
  1. +1 −1 django/conf/__init__.py
  2. +6 −6 django/conf/global_settings.py
  3. +1 −1 django/conf/locale/bg/formats.py
  4. +1 −1 django/conf/locale/ca/formats.py
  5. +6 −6 django/conf/locale/cs/formats.py
  6. +2 −2 django/conf/locale/de/formats.py
  7. +3 −3 django/conf/locale/de_CH/formats.py
  8. +2 −2 django/conf/locale/en/formats.py
  9. +1 −1 django/conf/locale/es/formats.py
  10. +3 −3 django/conf/locale/es_AR/formats.py
  11. +1 −1 django/conf/locale/es_MX/formats.py
  12. +1 −1 django/conf/locale/es_NI/formats.py
  13. +1 −1 django/conf/locale/es_PR/formats.py
  14. +1 −1 django/conf/locale/et/formats.py
  15. +1 −1 django/conf/locale/fi/formats.py
  16. +12 −12 django/conf/locale/fr/formats.py
  17. +1 −1 django/conf/locale/gl/formats.py
  18. +20 −20 django/conf/locale/hr/formats.py
  19. +5 −5 django/conf/locale/hu/formats.py
  20. +8 −8 django/conf/locale/it/formats.py
  21. +1 −1 django/conf/locale/ka/formats.py
  22. +1 −1 django/conf/locale/ko/formats.py
  23. +1 −1 django/conf/locale/lt/formats.py
  24. +2 −2 django/conf/locale/lv/formats.py
  25. +16 −16 django/conf/locale/mk/formats.py
  26. +2 −2 django/conf/locale/ml/formats.py
  27. +3 −3 django/conf/locale/nb/formats.py
  28. +3 −3 django/conf/locale/nn/formats.py
  29. +5 −5 django/conf/locale/pl/formats.py
  30. +1 −1 django/conf/locale/pt/formats.py
  31. +1 −1 django/conf/locale/pt_BR/formats.py
  32. +9 −9 django/conf/locale/ru/formats.py
  33. +6 −6 django/conf/locale/sk/formats.py
  34. +16 −16 django/conf/locale/sr/formats.py
  35. +16 −16 django/conf/locale/sr_Latn/formats.py
  36. +1 −1 django/conf/locale/sv/formats.py
  37. +5 −5 django/conf/locale/tr/formats.py
  38. +3 −3 django/contrib/admin/helpers.py
  39. +1 −1 django/contrib/admin/options.py
  40. +4 −4 django/contrib/admin/templatetags/admin_list.py
  41. +1 −1 django/contrib/admin/templatetags/admin_modify.py
  42. +6 −6 django/contrib/admin/utils.py
  43. +4 −4 django/contrib/admin/validation.py
  44. +4 −4 django/contrib/admin/views/main.py
  45. +1 −1 django/contrib/admin/widgets.py
  46. +1 −1 django/contrib/contenttypes/generic.py
  47. +1 −1 django/contrib/flatpages/middleware.py
  48. +3 −3 django/contrib/formtools/preview.py
  49. +3 −3 django/contrib/gis/db/backends/mysql/operations.py
  50. +3 −3 django/contrib/gis/db/backends/oracle/operations.py
  51. +1 −1 django/contrib/gis/db/backends/postgis/operations.py
  52. +3 −3 django/contrib/gis/db/backends/spatialite/operations.py
  53. +1 −1 django/contrib/gis/db/models/fields.py
  54. +2 −2 django/contrib/gis/db/models/query.py
  55. +3 −3 django/contrib/gis/gdal/geometries.py
  56. +1 −1 django/contrib/gis/gdal/prototypes/ds.py
  57. +1 −1 django/contrib/gis/gdal/prototypes/geom.py
  58. +4 −4 django/contrib/gis/gdal/tests/test_ds.py
  59. +1 −1 django/contrib/gis/gdal/tests/test_envelope.py
  60. +19 −19 django/contrib/gis/gdal/tests/test_geom.py
  61. +2 −2 django/contrib/gis/gdal/tests/test_srs.py
  62. +3 −3 django/contrib/gis/geoip/tests.py
  63. +4 −4 django/contrib/gis/geos/linestring.py
  64. +1 −1 django/contrib/gis/geos/prototypes/errcheck.py
  65. +1 −1 django/contrib/gis/geos/prototypes/misc.py
  66. +28 −28 django/contrib/gis/geos/tests/test_geos.py
  67. +3 −3 django/contrib/gis/geos/tests/test_mutable_list.py
  68. +3 −3 django/contrib/gis/maps/google/gmap.py
  69. +7 −7 django/contrib/gis/maps/google/zoom.py
  70. +4 −4 django/contrib/gis/tests/distapp/tests.py
  71. +4 −4 django/contrib/gis/tests/geoapp/models.py
  72. +2 −2 django/contrib/gis/tests/geoapp/test_feeds.py
  73. +1 −1 django/contrib/gis/tests/geoapp/test_sitemaps.py
  74. +12 −12 django/contrib/gis/tests/geoapp/tests.py
  75. +2 −2 django/contrib/gis/tests/geogapp/tests.py
  76. +3 −3 django/contrib/gis/tests/layermap/models.py
  77. +5 −5 django/contrib/gis/tests/layermap/tests.py
  78. +2 −2 django/contrib/gis/tests/test_spatialrefsys.py
  79. +3 −3 django/contrib/gis/utils/layermapping.py
  80. +1 −1 django/contrib/messages/storage/cookie.py
  81. +1 −1 django/contrib/messages/tests/test_cookie.py
  82. +1 −1 django/contrib/sessions/models.py
  83. +1 −1 django/contrib/sessions/tests.py
  84. +1 −1 django/core/cache/backends/memcached.py
  85. +1 −1 django/core/files/uploadhandler.py
  86. +2 −2 django/core/handlers/base.py
  87. +1 −1 django/core/handlers/wsgi.py
  88. +3 −3 django/core/management/__init__.py
  89. +3 −3 django/core/management/commands/inspectdb.py
  90. +3 −3 django/core/urlresolvers.py
  91. +1 −1 django/core/validators.py
  92. +3 −3 django/db/backends/mysql/base.py
  93. +1 −1 django/db/backends/oracle/creation.py
  94. +2 −2 django/db/backends/oracle/introspection.py
  95. +1 −1 django/db/backends/postgresql_psycopg2/introspection.py
  96. +2 −2 django/db/backends/postgresql_psycopg2/operations.py
  97. +1 −1 django/db/backends/sqlite3/base.py
  98. +1 −1 django/db/backends/sqlite3/introspection.py
  99. +5 −5 django/db/backends/utils.py
  100. +1 −1 django/db/models/__init__.py
  101. +1 −1 django/db/models/base.py
  102. +1 −1 django/db/models/fields/__init__.py
  103. +4 −4 django/db/models/query.py
  104. +1 −1 django/db/models/sql/query.py
  105. +2 −2 django/http/multipartparser.py
  106. +7 −7 django/http/request.py
  107. +3 −3 django/middleware/cache.py
  108. +1 −1 django/templatetags/cache.py
  109. +8 −8 django/test/_doctest.py
  110. +2 −2 django/test/simple.py
  111. +33 −33 django/utils/dictconfig.py
  112. +1 −1 django/views/debug.py
  113. +1 −1 docs/conf.py
  114. +1 −1 setup.cfg
  115. +1 −1 tests/admin_changelist/admin.py
  116. +1 −1 tests/admin_filters/models.py
  117. +2 −2 tests/admin_filters/tests.py
  118. +1 −1 tests/admin_inlines/admin.py
  119. +1 −1 tests/admin_ordering/tests.py
  120. +4 −4 tests/admin_views/admin.py
  121. +2 −2 tests/admin_views/customadmin.py
  122. +1 −1 tests/admin_views/models.py
  123. +2 −2 tests/admin_widgets/tests.py
  124. +1 −1 tests/aggregation_regress/tests.py
  125. +3 −3 tests/cache/tests.py
  126. +3 −3 tests/comment_tests/tests/test_moderation_views.py
  127. +1 −1 tests/datatypes/tests.py
  128. +1 −1 tests/file_uploads/uploadhandler.py
  129. +1 −1 tests/forms_tests/tests/test_forms.py
  130. +70 −70 tests/forms_tests/tests/test_formsets.py
  131. +5 −5 tests/forms_tests/tests/test_input_formats.py
  132. +3 −3 tests/generic_inline_admin/tests.py
  133. +7 −7 tests/httpwrappers/tests.py
  134. +1 −1 tests/i18n/test_extraction.py
  135. +1 −1 tests/i18n/tests.py
  136. +1 −1 tests/invalid_models/invalid_models/models.py
  137. +2 −2 tests/m2m_and_m2o/tests.py
  138. +1 −1 tests/max_lengths/tests.py
  139. +6 −6 tests/model_forms/tests.py
  140. +55 −55 tests/model_formsets/tests.py
  141. +1 −1 tests/modeladmin/models.py
  142. +6 −6 tests/multiple_database/tests.py
  143. +1 −1 tests/null_fk/tests.py
  144. +2 −2 tests/queries/tests.py
  145. +1 −1 tests/queryset_pickle/tests.py
  146. +5 −5 tests/requests/tests.py
  147. +13 −13 tests/serializers_regress/tests.py
  148. +1 −1 tests/template_tests/filters.py
  149. +1 −1 tests/template_tests/tests.py
  150. +1 −1 tests/test_client/tests.py
  151. +3 −3 tests/test_client_regress/tests.py
  152. +1 −1 tests/view_tests/__init__.py
  153. +3 −3 tests/view_tests/tests/test_debug.py
  154. +2 −2 tests/view_tests/tests/test_defaults.py
@@ -36,7 +36,7 @@ def _setup(self, name=None):
"""
try:
settings_module = os.environ[ENVIRONMENT_VARIABLE]
- if not settings_module: # If it's set but is an empty string.
+ if not settings_module: # If it's set but is an empty string.
raise KeyError
except KeyError:
desc = ("setting %s" % name) if name else "settings"
@@ -302,7 +302,7 @@
# Maximum size, in bytes, of a request before it will be streamed to the
# file system instead of into memory.
-FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
+FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
# Directory in which upload streamed files will be temporarily saved. A value of
# `None` will make Django use the operating system's default temporary directory
@@ -360,11 +360,11 @@
# http://docs.python.org/library/datetime.html#strftime-behavior
# * Note that these format strings are different from the ones to display dates
DATE_INPUT_FORMATS = (
- '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
- '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
- '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
- '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
- '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
+ '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
+ '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
+ '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
+ '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
+ '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
)
# Default formats to be used when parsing times from input boxes, in order
@@ -20,5 +20,5 @@
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = ' ' # Non-breaking space
+THOUSAND_SEPARATOR = ' ' # Non-breaking space
# NUMBER_GROUPING =
@@ -12,7 +12,7 @@
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y G:i'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
@@ -12,34 +12,34 @@
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y G:i:s'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = (
'%d.%m.%Y', '%d.%m.%y', # '05.01.2006', '05.01.06'
- '%d. %m. %Y', '%d. %m. %y', # '5. 1. 2006', '5. 1. 06'
+ '%d. %m. %Y', '%d. %m. %y', # '5. 1. 2006', '5. 1. 06'
# '%d. %B %Y', '%d. %b. %Y', # '25. October 2006', '25. Oct. 2006'
)
# Kept ISO formats as one is in first position
TIME_INPUT_FORMATS = (
- '%H:%M:%S', # '04:30:59'
+ '%H:%M:%S', # '04:30:59'
'%H.%M', # '04.30'
'%H:%M', # '04:30'
)
DATETIME_INPUT_FORMATS = (
'%d.%m.%Y %H:%M:%S', # '05.01.2006 04:30:59'
- '%d.%m.%Y %H:%M:%S.%f', # '05.01.2006 04:30:59.000200'
+ '%d.%m.%Y %H:%M:%S.%f', # '05.01.2006 04:30:59.000200'
'%d.%m.%Y %H.%M', # '05.01.2006 04.30'
'%d.%m.%Y %H:%M', # '05.01.2006 04:30'
'%d.%m.%Y', # '05.01.2006'
'%d. %m. %Y %H:%M:%S', # '05. 01. 2006 04:30:59'
- '%d. %m. %Y %H:%M:%S.%f', # '05. 01. 2006 04:30:59.000200'
+ '%d. %m. %Y %H:%M:%S.%f', # '05. 01. 2006 04:30:59.000200'
'%d. %m. %Y %H.%M', # '05. 01. 2006 04.30'
'%d. %m. %Y %H:%M', # '05. 01. 2006 04:30'
'%d. %m. %Y', # '05. 01. 2006'
'%Y-%m-%d %H.%M', # '2006-01-05 04.30'
)
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = '\xa0' # non-breaking space
+THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3
@@ -12,7 +12,7 @@
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y H:i:s'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
@@ -22,7 +22,7 @@
)
DATETIME_INPUT_FORMATS = (
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
- '%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
+ '%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
'%d.%m.%Y', # '25.10.2006'
)
@@ -13,7 +13,7 @@
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y H:i:s'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
@@ -23,7 +23,7 @@
)
DATETIME_INPUT_FORMATS = (
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
- '%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
+ '%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
'%d.%m.%Y', # '25.10.2006'
)
@@ -34,5 +34,5 @@
# For details, please refer to http://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de
# (in German) and the documentation
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = '\xa0' # non-breaking space
+THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3
@@ -12,13 +12,13 @@
MONTH_DAY_FORMAT = 'F j'
SHORT_DATE_FORMAT = 'm/d/Y'
SHORT_DATETIME_FORMAT = 'm/d/Y P'
-FIRST_DAY_OF_WEEK = 0 # Sunday
+FIRST_DAY_OF_WEEK = 0 # Sunday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# Kept ISO formats as they are in first position
DATE_INPUT_FORMATS = (
- '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
+ '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
# '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
# '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
# '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
@@ -12,7 +12,7 @@
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
@@ -12,13 +12,13 @@
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = r'd/m/Y'
SHORT_DATETIME_FORMAT = r'd/m/Y H:i'
-FIRST_DAY_OF_WEEK = 0 # 0: Sunday, 1: Monday
+FIRST_DAY_OF_WEEK = 0 # 0: Sunday, 1: Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = (
- '%d/%m/%Y', # '31/12/2009'
- '%d/%m/%y', # '31/12/09'
+ '%d/%m/%Y', # '31/12/2009'
+ '%d/%m/%y', # '31/12/09'
)
DATETIME_INPUT_FORMATS = (
'%d/%m/%Y %H:%M:%S',
@@ -24,5 +24,5 @@
'%d/%m/%y %H:%M',
)
DECIMAL_SEPARATOR = '.' # ',' is also official (less common): NOM-008-SCFI-2002
-THOUSAND_SEPARATOR = '\xa0' # non-breaking space
+THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3
@@ -10,7 +10,7 @@
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
-FIRST_DAY_OF_WEEK = 1 # Monday: ISO 8601
+FIRST_DAY_OF_WEEK = 1 # Monday: ISO 8601
DATE_INPUT_FORMATS = (
'%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
'%Y%m%d', # '20061025'
@@ -10,7 +10,7 @@
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
-FIRST_DAY_OF_WEEK = 0 # Sunday
+FIRST_DAY_OF_WEEK = 0 # Sunday
DATE_INPUT_FORMATS = (
# '31/12/2009', '31/12/09'
@@ -20,5 +20,5 @@
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = ' ' # Non-breaking space
+THOUSAND_SEPARATOR = ' ' # Non-breaking space
# NUMBER_GROUPING =
@@ -20,5 +20,5 @@
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = ' ' # Non-breaking space
+THOUSAND_SEPARATOR = ' ' # Non-breaking space
# NUMBER_GROUPING =
@@ -12,25 +12,25 @@
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j N Y'
SHORT_DATETIME_FORMAT = 'j N Y H:i:s'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = (
- '%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
- '%d.%m.%Y', '%d.%m.%y', # Swiss (fr_CH), '25.10.2006', '25.10.06'
+ '%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
+ '%d.%m.%Y', '%d.%m.%y', # Swiss (fr_CH), '25.10.2006', '25.10.06'
# '%d %B %Y', '%d %b %Y', # '25 octobre 2006', '25 oct. 2006'
)
DATETIME_INPUT_FORMATS = (
- '%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
- '%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
- '%d/%m/%Y %H:%M', # '25/10/2006 14:30'
- '%d/%m/%Y', # '25/10/2006'
- '%d.%m.%Y %H:%M:%S', # Swiss (fr_CH), '25.10.2006 14:30:59'
- '%d.%m.%Y %H:%M:%S.%f', # Swiss (fr_CH), '25.10.2006 14:30:59.000200'
- '%d.%m.%Y %H:%M', # Swiss (fr_CH), '25.10.2006 14:30'
- '%d.%m.%Y', # Swiss (fr_CH), '25.10.2006'
+ '%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
+ '%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
+ '%d/%m/%Y %H:%M', # '25/10/2006 14:30'
+ '%d/%m/%Y', # '25/10/2006'
+ '%d.%m.%Y %H:%M:%S', # Swiss (fr_CH), '25.10.2006 14:30:59'
+ '%d.%m.%Y %H:%M:%S.%f', # Swiss (fr_CH), '25.10.2006 14:30:59.000200'
+ '%d.%m.%Y %H:%M', # Swiss (fr_CH), '25.10.2006 14:30'
+ '%d.%m.%Y', # Swiss (fr_CH), '25.10.2006'
)
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = '\xa0' # non-breaking space
+THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3
@@ -12,7 +12,7 @@
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = 'd-m-Y'
SHORT_DATETIME_FORMAT = 'd-m-Y, H:i'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
@@ -23,26 +23,26 @@
'%d. %m. %Y.', '%d. %m. %y.', # '25. 10. 2006.', '25. 10. 06.'
)
DATETIME_INPUT_FORMATS = (
- '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
- '%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
- '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
- '%Y-%m-%d', # '2006-10-25'
- '%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
- '%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
- '%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
- '%d.%m.%Y.', # '25.10.2006.'
- '%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
- '%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
- '%d.%m.%y. %H:%M', # '25.10.06. 14:30'
- '%d.%m.%y.', # '25.10.06.'
- '%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
- '%d. %m. %Y. %H:%M:%S.%f',# '25. 10. 2006. 14:30:59.000200'
- '%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
- '%d. %m. %Y.', # '25. 10. 2006.'
- '%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
- '%d. %m. %y. %H:%M:%S.%f',# '25. 10. 06. 14:30:59.000200'
- '%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
- '%d. %m. %y.', # '25. 10. 06.'
+ '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
+ '%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
+ '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
+ '%Y-%m-%d', # '2006-10-25'
+ '%d.%m.%Y. %H:%M:%S', # '25.10.2006. 14:30:59'
+ '%d.%m.%Y. %H:%M:%S.%f', # '25.10.2006. 14:30:59.000200'
+ '%d.%m.%Y. %H:%M', # '25.10.2006. 14:30'
+ '%d.%m.%Y.', # '25.10.2006.'
+ '%d.%m.%y. %H:%M:%S', # '25.10.06. 14:30:59'
+ '%d.%m.%y. %H:%M:%S.%f', # '25.10.06. 14:30:59.000200'
+ '%d.%m.%y. %H:%M', # '25.10.06. 14:30'
+ '%d.%m.%y.', # '25.10.06.'
+ '%d. %m. %Y. %H:%M:%S', # '25. 10. 2006. 14:30:59'
+ '%d. %m. %Y. %H:%M:%S.%f', # '25. 10. 2006. 14:30:59.000200'
+ '%d. %m. %Y. %H:%M', # '25. 10. 2006. 14:30'
+ '%d. %m. %Y.', # '25. 10. 2006.'
+ '%d. %m. %y. %H:%M:%S', # '25. 10. 06. 14:30:59'
+ '%d. %m. %y. %H:%M:%S.%f', # '25. 10. 06. 14:30:59.000200'
+ '%d. %m. %y. %H:%M', # '25. 10. 06. 14:30'
+ '%d. %m. %y.', # '25. 10. 06.'
)
DECIMAL_SEPARATOR = ','
@@ -12,23 +12,23 @@
MONTH_DAY_FORMAT = 'F j.'
SHORT_DATE_FORMAT = 'Y.m.d.'
SHORT_DATETIME_FORMAT = 'Y.m.d. G.i.s'
-FIRST_DAY_OF_WEEK = 1 # Monday
+FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = (
- '%Y.%m.%d.', # '2006.10.25.'
+ '%Y.%m.%d.', # '2006.10.25.'
)
TIME_INPUT_FORMATS = (
- '%H.%M.%S', # '14.30.59'
+ '%H.%M.%S', # '14.30.59'
'%H.%M', # '14.30'
)
DATETIME_INPUT_FORMATS = (
'%Y.%m.%d. %H.%M.%S', # '2006.10.25. 14.30.59'
- '%Y.%m.%d. %H.%M.%S.%f', # '2006.10.25. 14.30.59.000200'
+ '%Y.%m.%d. %H.%M.%S.%f', # '2006.10.25. 14.30.59.000200'
'%Y.%m.%d. %H.%M', # '2006.10.25. 14.30'
'%Y.%m.%d.', # '2006.10.25.'
)
DECIMAL_SEPARATOR = ','
-THOUSAND_SEPARATOR = ' ' # Non-breaking space
+THOUSAND_SEPARATOR = ' ' # Non-breaking space
NUMBER_GROUPING = 3
@@ -5,14 +5,14 @@
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
-DATE_FORMAT = 'd F Y' # 25 Ottobre 2006
-TIME_FORMAT = 'H:i:s' # 14:30:59
-DATETIME_FORMAT = 'l d F Y H:i:s' # Mercoledì 25 Ottobre 2006 14:30:59
-YEAR_MONTH_FORMAT = 'F Y' # Ottobre 2006
-MONTH_DAY_FORMAT = 'j/F' # 10/2006
-SHORT_DATE_FORMAT = 'd/m/Y' # 25/12/2009
-SHORT_DATETIME_FORMAT = 'd/m/Y H:i:s' # 25/10/2009 14:30:59
-FIRST_DAY_OF_WEEK = 1 # Lunedì
+DATE_FORMAT = 'd F Y' # 25 Ottobre 2006
+TIME_FORMAT = 'H:i:s' # 14:30:59
+DATETIME_FORMAT = 'l d F Y H:i:s' # Mercoledì 25 Ottobre 2006 14:30:59
+YEAR_MONTH_FORMAT = 'F Y' # Ottobre 2006
+MONTH_DAY_FORMAT = 'j/F' # 10/2006
+SHORT_DATE_FORMAT = 'd/m/Y' # 25/12/2009
+SHORT_DATETIME_FORMAT = 'd/m/Y H:i:s' # 25/10/2009 14:30:59
+FIRST_DAY_OF_WEEK = 1 # Lunedì
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
@@ -12,7 +12,7 @@
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j.M.Y'
SHORT_DATETIME_FORMAT = 'j.M.Y H:i:s'
-FIRST_DAY_OF_WEEK = 1 # (Monday)
+FIRST_DAY_OF_WEEK = 1 # (Monday)
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
@@ -18,7 +18,7 @@
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# Kept ISO formats as they are in first position
DATE_INPUT_FORMATS = (
- '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
+ '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
# '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
# '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
# '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
@@ -17,7 +17,7 @@
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = (
- '%Y-%m-%d', '%d.%m.%Y', '%d.%m.%y', # '2006-10-25', '25.10.2006', '25.10.06'
+ '%Y-%m-%d', '%d.%m.%Y', '%d.%m.%y', # '2006-10-25', '25.10.2006', '25.10.06'
)
TIME_INPUT_FORMATS = (
'%H:%M:%S', # '14:30:59'
Oops, something went wrong. Retry.

0 comments on commit 3bc0d46

Please sign in to comment.