summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-10 16:42:30 -0400
committerTim Graham <timograham@gmail.com>2013-10-10 16:49:20 -0400
commit1dae4ac1778f04805c0ed62c8debb13b281ba02b (patch)
tree5105833792cc07336de819effb1c9dccdbc0c76e
parentca874b2fe6f768bd042b859d7eba622a68e9f9dd (diff)
downloaddjango-1dae4ac1778f04805c0ed62c8debb13b281ba02b.tar.gz
Whitespace cleanup.
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
-rw-r--r--LICENSE6
-rwxr-xr-xdjango/bin/django-2to3.py1
-rw-r--r--django/bin/profiling/gather_profile_stats.py2
-rw-r--r--django/conf/locale/ar/formats.py14
-rw-r--r--django/conf/locale/bg/formats.py16
-rw-r--r--django/conf/locale/bn/formats.py14
-rw-r--r--django/conf/locale/bs/formats.py12
-rw-r--r--django/conf/locale/ca/formats.py1
-rw-r--r--django/conf/locale/cy/formats.py22
-rw-r--r--django/conf/locale/el/formats.py14
-rw-r--r--django/conf/locale/en/formats.py1
-rw-r--r--django/conf/locale/en_GB/formats.py1
-rw-r--r--django/conf/locale/es/formats.py1
-rw-r--r--django/conf/locale/es_NI/formats.py7
-rw-r--r--django/conf/locale/et/formats.py16
-rw-r--r--django/conf/locale/eu/formats.py18
-rw-r--r--django/conf/locale/fa/formats.py10
-rw-r--r--django/conf/locale/fi/formats.py12
-rw-r--r--django/conf/locale/fy_NL/formats.py28
-rw-r--r--django/conf/locale/ga/formats.py16
-rw-r--r--django/conf/locale/gl/formats.py8
-rw-r--r--django/conf/locale/he/formats.py10
-rw-r--r--django/conf/locale/hi/formats.py16
-rw-r--r--django/conf/locale/is/formats.py14
-rw-r--r--django/conf/locale/ja/formats.py10
-rw-r--r--django/conf/locale/km/formats.py12
-rw-r--r--django/conf/locale/kn/formats.py20
-rw-r--r--django/conf/locale/ml/formats.py1
-rw-r--r--django/conf/locale/ro/formats.py10
-rw-r--r--django/conf/locale/sq/formats.py14
-rw-r--r--django/conf/locale/ta/formats.py20
-rw-r--r--django/conf/locale/te/formats.py20
-rw-r--r--django/conf/locale/th/formats.py10
-rw-r--r--django/conf/locale/uk/formats.py12
-rw-r--r--django/conf/locale/vi/formats.py10
-rw-r--r--django/conf/locale/zh_CN/formats.py28
-rw-r--r--django/conf/locale/zh_TW/formats.py28
-rw-r--r--django/conf/urls/__init__.py1
-rw-r--r--django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js2
-rw-r--r--django/contrib/auth/fixtures/natural.json34
-rw-r--r--django/contrib/auth/fixtures/regular.json34
-rw-r--r--django/contrib/auth/hashers.py1
-rw-r--r--django/contrib/auth/tests/templates/context_processors/auth_attrs_no_access.html2
-rw-r--r--django/contrib/auth/tests/test_context_processors.py2
-rw-r--r--django/contrib/comments/moderation.py2
-rw-r--r--django/contrib/flatpages/tests/test_forms.py1
-rw-r--r--django/contrib/flatpages/tests/test_middleware.py2
-rw-r--r--django/contrib/flatpages/tests/test_templatetags.py1
-rw-r--r--django/contrib/flatpages/tests/urls.py1
-rw-r--r--django/contrib/formtools/tests/wizard/namedwizardtests/forms.py1
-rw-r--r--django/contrib/formtools/tests/wizard/test_loadstorage.py1
-rw-r--r--django/contrib/formtools/tests/wizard/wizardtests/forms.py1
-rw-r--r--django/contrib/gis/db/backends/spatialite/client.py1
-rw-r--r--django/contrib/gis/db/models/sql/conversion.py2
-rw-r--r--django/contrib/gis/feeds.py2
-rw-r--r--django/contrib/gis/gdal/__init__.py1
-rw-r--r--django/contrib/gis/gdal/base.py1
-rw-r--r--django/contrib/gis/gdal/envelope.py82
-rw-r--r--django/contrib/gis/gdal/error.py2
-rw-r--r--django/contrib/gis/gdal/prototypes/ds.py2
-rw-r--r--django/contrib/gis/gdal/prototypes/generation.py4
-rw-r--r--django/contrib/gis/gdal/prototypes/geom.py3
-rw-r--r--django/contrib/gis/geos/__init__.py2
-rw-r--r--django/contrib/gis/geos/error.py2
-rw-r--r--django/contrib/gis/geos/io.py2
-rw-r--r--django/contrib/gis/geos/prototypes/topology.py2
-rw-r--r--django/contrib/gis/maps/google/__init__.py10
-rw-r--r--django/contrib/gis/shortcuts.py2
-rw-r--r--django/contrib/gis/sitemaps/__init__.py1
-rw-r--r--django/contrib/gis/sitemaps/georss.py1
-rw-r--r--django/contrib/gis/sitemaps/kml.py6
-rw-r--r--django/contrib/gis/templates/gis/admin/openlayers.html4
-rw-r--r--django/contrib/gis/tests/data/geometries.json2
-rw-r--r--django/contrib/gis/tests/geogapp/fixtures/initial_data.json60
-rw-r--r--django/contrib/gis/tests/layermap/models.py2
-rw-r--r--django/contrib/redirects/admin.py4
-rw-r--r--django/contrib/sitemaps/management/commands/ping_google.py1
-rw-r--r--django/contrib/sitemaps/models.py2
-rw-r--r--django/contrib/sites/admin.py2
-rw-r--r--django/contrib/sites/managers.py10
-rw-r--r--django/core/mail/backends/filebased.py1
-rw-r--r--django/core/management/commands/sqldropindexes.py1
-rw-r--r--django/core/serializers/json.py1
-rw-r--r--django/dispatch/__init__.py2
-rw-r--r--django/utils/autoreload.py1
-rw-r--r--django/utils/regex_helper.py1
-rw-r--r--django/utils/safestring.py1
-rw-r--r--django/utils/translation/trans_null.py1
-rw-r--r--django/views/decorators/http.py1
-rw-r--r--docs/README2
-rw-r--r--docs/_ext/literals_to_xrefs.py34
-rw-r--r--docs/_theme/djangodocs/layout.html16
-rw-r--r--docs/faq/index.txt2
-rw-r--r--docs/internals/contributing/triaging-tickets.txt2
-rw-r--r--docs/misc/design-philosophies.txt2
-rw-r--r--docs/misc/index.txt2
-rw-r--r--docs/ref/contrib/gis/forms-api.txt2
-rw-r--r--docs/ref/models/relations.txt2
-rw-r--r--docs/releases/1.0-beta.txt2
-rw-r--r--docs/releases/1.1-rc-1.txt2
-rw-r--r--docs/releases/1.2-rc-1.txt2
-rw-r--r--docs/releases/1.2.7.txt2
-rw-r--r--docs/topics/http/index.txt2
-rwxr-xr-xextras/django_bash_completion3
-rw-r--r--scripts/manage_translations.py2
-rw-r--r--tests/admin_custom_urls/fixtures/actions.json34
-rw-r--r--tests/admin_custom_urls/urls.py1
-rw-r--r--tests/admin_scripts/custom_templates/app_template/api.py2
-rw-r--r--tests/admin_scripts/custom_templates/app_template/models.py2
-rw-r--r--tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py2
-rw-r--r--tests/admin_scripts/management/commands/app_command.py1
-rw-r--r--tests/admin_scripts/tests.py2
-rw-r--r--tests/admin_widgets/fixtures/admin-widgets-users.xml2
-rw-r--r--tests/admin_widgets/widgetadmin.py5
-rw-r--r--tests/aggregation/models.py1
-rw-r--r--tests/bash_completion/models.py1
-rw-r--r--tests/cache/liberal_backend.py1
-rw-r--r--tests/cache/tests.py1
-rw-r--r--tests/choices/tests.py1
-rw-r--r--tests/comment_tests/tests/__init__.py1
-rw-r--r--tests/conditional_processing/views.py1
-rw-r--r--tests/context_processors/tests.py1
-rw-r--r--tests/createsuperuser/tests.py1
-rw-r--r--tests/custom_columns/models.py1
-rw-r--r--tests/custom_columns_regress/models.py3
-rw-r--r--tests/custom_managers_regress/tests.py1
-rw-r--r--tests/custom_pk/models.py1
-rw-r--r--tests/decorators/models.py1
-rw-r--r--tests/defaultfilters/tests.py2
-rw-r--r--tests/distinct_on_fields/tests.py1
-rw-r--r--tests/expressions_regress/models.py1
-rw-r--r--tests/extra_regress/models.py1
-rw-r--r--tests/fixtures/fixtures/fixture2.json14
-rw-r--r--tests/fixtures_model_package/fixtures/fixture1.json14
-rw-r--r--tests/fixtures_model_package/fixtures/fixture2.json14
-rw-r--r--tests/fixtures_regress/fixtures/absolute.json4
-rw-r--r--tests/fixtures_regress/fixtures/big-fixture.json22
-rw-r--r--tests/fixtures_regress/fixtures/sequence.json6
-rw-r--r--tests/generic_inline_admin/models.py2
-rw-r--r--tests/generic_views/test_edit.py1
-rw-r--r--tests/http_utils/tests.py2
-rw-r--r--tests/i18n/resolution/models.py2
-rw-r--r--tests/initial_sql_regress/models.py1
-rw-r--r--tests/known_related_objects/models.py1
-rw-r--r--tests/m2m_and_m2o/models.py1
-rw-r--r--tests/m2m_intermediary/models.py1
-rw-r--r--tests/m2m_regress/tests.py1
-rw-r--r--tests/mail/models.py1
-rw-r--r--tests/migrations/test_migrations/0001_initial.py4
-rw-r--r--tests/migrations/test_migrations_2/0001_initial.py4
-rw-r--r--tests/migrations/test_state.py6
-rw-r--r--tests/multiple_database/routers.py1
-rw-r--r--tests/resolve_url/tests.py1
-rw-r--r--tests/tablespaces/tests.py2
-rw-r--r--tests/template_tests/templatetags/broken_tag.py2
-rw-r--r--tests/test_client/fixtures/testdata.json78
-rw-r--r--tests/test_client_regress/fixtures/testdata.json78
-rw-r--r--tests/urlpatterns_reverse/included_named_urls.py1
-rw-r--r--tests/urlpatterns_reverse/included_named_urls2.py1
-rw-r--r--tests/urlpatterns_reverse/included_namespace_urls.py1
-rw-r--r--tests/urlpatterns_reverse/no_urls.py1
-rw-r--r--tests/urlpatterns_reverse/tests.py1
-rw-r--r--tests/utils_tests/files/strip_tags1.html58
-rw-r--r--tests/utils_tests/files/strip_tags2.txt26
-rw-r--r--tests/utils_tests/test_module/bad_module.py2
-rw-r--r--tests/utils_tests/test_module/good_module.py2
-rw-r--r--tests/validation/__init__.py1
-rw-r--r--tests/validation/test_custom_messages.py1
-rw-r--r--tests/validation/test_unique.py1
-rw-r--r--tests/version/tests.py1
-rw-r--r--tests/view_tests/__init__.py1
-rw-r--r--tests/view_tests/templatetags/debugtags.py1
-rw-r--r--tests/view_tests/tests/test_specials.py1
173 files changed, 602 insertions, 678 deletions
diff --git a/LICENSE b/LICENSE
index d0c3f2838d..5f4f225dd2 100644
--- a/LICENSE
+++ b/LICENSE
@@ -4,10 +4,10 @@ All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
- 1. Redistributions of source code must retain the above copyright notice,
+ 1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
+
+ 2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
diff --git a/django/bin/django-2to3.py b/django/bin/django-2to3.py
index 35566abb94..6d2daec8bf 100755
--- a/django/bin/django-2to3.py
+++ b/django/bin/django-2to3.py
@@ -7,4 +7,3 @@ import sys
from lib2to3.main import main
sys.exit(main("django.utils.2to3_fixes"))
-
diff --git a/django/bin/profiling/gather_profile_stats.py b/django/bin/profiling/gather_profile_stats.py
index 0244eb6034..177657ebbc 100644
--- a/django/bin/profiling/gather_profile_stats.py
+++ b/django/bin/profiling/gather_profile_stats.py
@@ -32,6 +32,6 @@ def gather_stats(p):
os.unlink(os.path.join(p, f))
for (path, prof) in profiles.items():
prof.dump_stats(os.path.join(p, "%s.agg.prof" % path))
-
+
if __name__ == '__main__':
gather_stats(sys.argv[1])
diff --git a/django/conf/locale/ar/formats.py b/django/conf/locale/ar/formats.py
index 213e5b363f..0df655333c 100644
--- a/django/conf/locale/ar/formats.py
+++ b/django/conf/locale/ar/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F، Y'
TIME_FORMAT = 'g:i:s A'
-# DATETIME_FORMAT =
+# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd‏/m‏/Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/bg/formats.py b/django/conf/locale/bg/formats.py
index c5e89737b6..4472600398 100644
--- a/django/conf/locale/bg/formats.py
+++ b/django/conf/locale/bg/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'H:i:s'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = ' ' # Non-breaking space
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/bn/formats.py b/django/conf/locale/bn/formats.py
index eed24e605e..3f0f1f7f43 100644
--- a/django/conf/locale/bn/formats.py
+++ b/django/conf/locale/bn/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F, Y'
TIME_FORMAT = 'g:i:s A'
-# DATETIME_FORMAT =
+# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M, Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/bs/formats.py b/django/conf/locale/bs/formats.py
index 454fab1e1e..cce3900f1e 100644
--- a/django/conf/locale/bs/formats.py
+++ b/django/conf/locale/bs/formats.py
@@ -11,14 +11,14 @@ DATETIME_FORMAT = 'j. N. Y. G:i T'
YEAR_MONTH_FORMAT = 'F Y.'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'Y M j'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/ca/formats.py b/django/conf/locale/ca/formats.py
index 0335617ac8..9ccddbb24d 100644
--- a/django/conf/locale/ca/formats.py
+++ b/django/conf/locale/ca/formats.py
@@ -31,4 +31,3 @@ DATETIME_INPUT_FORMATS = (
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3
-
diff --git a/django/conf/locale/cy/formats.py b/django/conf/locale/cy/formats.py
index ba4b275938..50ab9f101c 100644
--- a/django/conf/locale/cy/formats.py
+++ b/django/conf/locale/cy/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'g:i:s A'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
-# MONTH_DAY_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
+# MONTH_DAY_FORMAT =
SHORT_DATE_FORMAT = 'j M Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
-# DECIMAL_SEPARATOR =
-# THOUSAND_SEPARATOR =
-# NUMBER_GROUPING =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+# DECIMAL_SEPARATOR =
+# THOUSAND_SEPARATOR =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/el/formats.py b/django/conf/locale/el/formats.py
index a44b909b2e..817f71d3c8 100644
--- a/django/conf/locale/el/formats.py
+++ b/django/conf/locale/el/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd E Y'
TIME_FORMAT = 'g:i:s A'
-# DATETIME_FORMAT =
+# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd M Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/en/formats.py b/django/conf/locale/en/formats.py
index e73bc62367..5accf9e3d2 100644
--- a/django/conf/locale/en/formats.py
+++ b/django/conf/locale/en/formats.py
@@ -41,4 +41,3 @@ DATETIME_INPUT_FORMATS = (
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3
-
diff --git a/django/conf/locale/en_GB/formats.py b/django/conf/locale/en_GB/formats.py
index 3cf7f79224..c2edd23bcd 100644
--- a/django/conf/locale/en_GB/formats.py
+++ b/django/conf/locale/en_GB/formats.py
@@ -40,4 +40,3 @@ DATETIME_INPUT_FORMATS = (
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3
-
diff --git a/django/conf/locale/es/formats.py b/django/conf/locale/es/formats.py
index 7e5ecb39a6..08029a876e 100644
--- a/django/conf/locale/es/formats.py
+++ b/django/conf/locale/es/formats.py
@@ -31,4 +31,3 @@ DATETIME_INPUT_FORMATS = (
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3
-
diff --git a/django/conf/locale/es_NI/formats.py b/django/conf/locale/es_NI/formats.py
index 8220b80b78..4bdf24e491 100644
--- a/django/conf/locale/es_NI/formats.py
+++ b/django/conf/locale/es_NI/formats.py
@@ -10,10 +10,10 @@ YEAR_MONTH_FORMAT = r'F \d\e Y'
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'
+ '%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
+ '%Y%m%d', # '20061025'
)
DATETIME_INPUT_FORMATS = (
@@ -27,4 +27,3 @@ DATETIME_INPUT_FORMATS = (
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3
-
diff --git a/django/conf/locale/et/formats.py b/django/conf/locale/et/formats.py
index dd0d1a696e..1de3948a2b 100644
--- a/django/conf/locale/et/formats.py
+++ b/django/conf/locale/et/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y'
TIME_FORMAT = 'G:i:s'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = ' ' # Non-breaking space
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/eu/formats.py b/django/conf/locale/eu/formats.py
index 5b768eabca..7b14262560 100644
--- a/django/conf/locale/eu/formats.py
+++ b/django/conf/locale/eu/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'Yeko M\re\n d\a'
TIME_FORMAT = 'H:i:s'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
-# MONTH_DAY_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
+# MONTH_DAY_FORMAT =
SHORT_DATE_FORMAT = 'Y M j'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/fa/formats.py b/django/conf/locale/fa/formats.py
index 5682c410e2..30ce9a5628 100644
--- a/django/conf/locale/fa/formats.py
+++ b/django/conf/locale/fa/formats.py
@@ -12,13 +12,13 @@ YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'Y/n/j'
SHORT_DATETIME_FORMAT = 'Y/n/j،‏ G:i:s'
-# FIRST_DAY_OF_WEEK =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/fi/formats.py b/django/conf/locale/fi/formats.py
index e76144a9e4..da1f003411 100644
--- a/django/conf/locale/fi/formats.py
+++ b/django/conf/locale/fi/formats.py
@@ -11,14 +11,14 @@ DATETIME_FORMAT = r'j. E Y \k\e\l\l\o G.i.s'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'j.n.Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = ' ' # Non-breaking space
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/fy_NL/formats.py b/django/conf/locale/fy_NL/formats.py
index 4355928ca0..330c2f296e 100644
--- a/django/conf/locale/fy_NL/formats.py
+++ b/django/conf/locale/fy_NL/formats.py
@@ -5,20 +5,20 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
-# DATE_FORMAT =
-# TIME_FORMAT =
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
-# MONTH_DAY_FORMAT =
-# SHORT_DATE_FORMAT =
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# DATE_FORMAT =
+# TIME_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
+# MONTH_DAY_FORMAT =
+# SHORT_DATE_FORMAT =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
-# DECIMAL_SEPARATOR =
-# THOUSAND_SEPARATOR =
-# NUMBER_GROUPING =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+# DECIMAL_SEPARATOR =
+# THOUSAND_SEPARATOR =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/ga/formats.py b/django/conf/locale/ga/formats.py
index ce271ab533..d998a43a19 100644
--- a/django/conf/locale/ga/formats.py
+++ b/django/conf/locale/ga/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y'
TIME_FORMAT = 'H:i:s'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/gl/formats.py b/django/conf/locale/gl/formats.py
index ba7f6c52a0..de592240f0 100644
--- a/django/conf/locale/gl/formats.py
+++ b/django/conf/locale/gl/formats.py
@@ -16,9 +16,9 @@ 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 =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/he/formats.py b/django/conf/locale/he/formats.py
index 1c8b1b5566..6c63e1b3ac 100644
--- a/django/conf/locale/he/formats.py
+++ b/django/conf/locale/he/formats.py
@@ -12,13 +12,13 @@ YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j בF'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y H:i:s'
-# FIRST_DAY_OF_WEEK =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/hi/formats.py b/django/conf/locale/hi/formats.py
index f4fabe00cd..52e02040ec 100644
--- a/django/conf/locale/hi/formats.py
+++ b/django/conf/locale/hi/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y'
TIME_FORMAT = 'g:i:s A'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd-m-Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/is/formats.py b/django/conf/locale/is/formats.py
index 90f251abe7..e5e99521ff 100644
--- a/django/conf/locale/is/formats.py
+++ b/django/conf/locale/is/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j. F Y'
TIME_FORMAT = 'H:i:s'
-# DATETIME_FORMAT =
+# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'j.n.Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/ja/formats.py b/django/conf/locale/ja/formats.py
index 263aa0a344..2f6d2b43cc 100644
--- a/django/conf/locale/ja/formats.py
+++ b/django/conf/locale/ja/formats.py
@@ -12,13 +12,13 @@ YEAR_MONTH_FORMAT = 'Y年n月'
MONTH_DAY_FORMAT = 'n月j日'
SHORT_DATE_FORMAT = 'Y/m/d'
SHORT_DATETIME_FORMAT = 'Y/m/d G:i:s'
-# FIRST_DAY_OF_WEEK =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/km/formats.py b/django/conf/locale/km/formats.py
index ace2fc1eea..13a43107f4 100644
--- a/django/conf/locale/km/formats.py
+++ b/django/conf/locale/km/formats.py
@@ -8,17 +8,17 @@ from __future__ import unicode_literals
DATE_FORMAT = 'j ខែ F ឆ្នាំ Y'
TIME_FORMAT = 'G:i:s'
DATETIME_FORMAT = 'j ខែ F ឆ្នាំ Y, G:i:s'
-# YEAR_MONTH_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M Y'
SHORT_DATETIME_FORMAT = 'j M Y, G:i:s'
-# FIRST_DAY_OF_WEEK =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/kn/formats.py b/django/conf/locale/kn/formats.py
index ce1999ac93..4924708650 100644
--- a/django/conf/locale/kn/formats.py
+++ b/django/conf/locale/kn/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y'
TIME_FORMAT = 'h:i:s A'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
-# DECIMAL_SEPARATOR =
-# THOUSAND_SEPARATOR =
-# NUMBER_GROUPING =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+# DECIMAL_SEPARATOR =
+# THOUSAND_SEPARATOR =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/ml/formats.py b/django/conf/locale/ml/formats.py
index e73bc62367..5accf9e3d2 100644
--- a/django/conf/locale/ml/formats.py
+++ b/django/conf/locale/ml/formats.py
@@ -41,4 +41,3 @@ DATETIME_INPUT_FORMATS = (
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3
-
diff --git a/django/conf/locale/ro/formats.py b/django/conf/locale/ro/formats.py
index 5435837483..6d7d063d15 100644
--- a/django/conf/locale/ro/formats.py
+++ b/django/conf/locale/ro/formats.py
@@ -12,13 +12,13 @@ YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y, H:i:s'
-# FIRST_DAY_OF_WEEK =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/sq/formats.py b/django/conf/locale/sq/formats.py
index 1c04e2e5e8..7172826722 100644
--- a/django/conf/locale/sq/formats.py
+++ b/django/conf/locale/sq/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'g.i.s.A'
-# DATETIME_FORMAT =
+# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'Y-m-d'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/ta/formats.py b/django/conf/locale/ta/formats.py
index 1c08f17501..4e206f4d8c 100644
--- a/django/conf/locale/ta/formats.py
+++ b/django/conf/locale/ta/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F, Y'
TIME_FORMAT = 'g:i:s A'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M, Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
-# DECIMAL_SEPARATOR =
-# THOUSAND_SEPARATOR =
-# NUMBER_GROUPING =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+# DECIMAL_SEPARATOR =
+# THOUSAND_SEPARATOR =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/te/formats.py b/django/conf/locale/te/formats.py
index 02399d6c1b..275ab8dc8f 100644
--- a/django/conf/locale/te/formats.py
+++ b/django/conf/locale/te/formats.py
@@ -7,18 +7,18 @@ from __future__ import unicode_literals
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y'
TIME_FORMAT = 'g:i:s A'
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
-# DECIMAL_SEPARATOR =
-# THOUSAND_SEPARATOR =
-# NUMBER_GROUPING =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+# DECIMAL_SEPARATOR =
+# THOUSAND_SEPARATOR =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/th/formats.py b/django/conf/locale/th/formats.py
index 7847a7c251..714b2037df 100644
--- a/django/conf/locale/th/formats.py
+++ b/django/conf/locale/th/formats.py
@@ -12,13 +12,13 @@ YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M Y'
SHORT_DATETIME_FORMAT = 'j M Y, G:i:s'
-# FIRST_DAY_OF_WEEK =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/uk/formats.py b/django/conf/locale/uk/formats.py
index 11293f047a..e2a3363ca8 100644
--- a/django/conf/locale/uk/formats.py
+++ b/django/conf/locale/uk/formats.py
@@ -12,14 +12,14 @@ DATETIME_FORMAT = 'j E Y р. H:i:s'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M Y'
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = ' '
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/vi/formats.py b/django/conf/locale/vi/formats.py
index b491c2d20c..93ede97b98 100644
--- a/django/conf/locale/vi/formats.py
+++ b/django/conf/locale/vi/formats.py
@@ -12,13 +12,13 @@ YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd-m-Y'
SHORT_DATETIME_FORMAT = 'H:i:s d-m-Y'
-# FIRST_DAY_OF_WEEK =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
-# NUMBER_GROUPING =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/zh_CN/formats.py b/django/conf/locale/zh_CN/formats.py
index 4355928ca0..330c2f296e 100644
--- a/django/conf/locale/zh_CN/formats.py
+++ b/django/conf/locale/zh_CN/formats.py
@@ -5,20 +5,20 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
-# DATE_FORMAT =
-# TIME_FORMAT =
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
-# MONTH_DAY_FORMAT =
-# SHORT_DATE_FORMAT =
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# DATE_FORMAT =
+# TIME_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
+# MONTH_DAY_FORMAT =
+# SHORT_DATE_FORMAT =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
-# DECIMAL_SEPARATOR =
-# THOUSAND_SEPARATOR =
-# NUMBER_GROUPING =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+# DECIMAL_SEPARATOR =
+# THOUSAND_SEPARATOR =
+# NUMBER_GROUPING =
diff --git a/django/conf/locale/zh_TW/formats.py b/django/conf/locale/zh_TW/formats.py
index 4355928ca0..330c2f296e 100644
--- a/django/conf/locale/zh_TW/formats.py
+++ b/django/conf/locale/zh_TW/formats.py
@@ -5,20 +5,20 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
-# DATE_FORMAT =
-# TIME_FORMAT =
-# DATETIME_FORMAT =
-# YEAR_MONTH_FORMAT =
-# MONTH_DAY_FORMAT =
-# SHORT_DATE_FORMAT =
-# SHORT_DATETIME_FORMAT =
-# FIRST_DAY_OF_WEEK =
+# DATE_FORMAT =
+# TIME_FORMAT =
+# DATETIME_FORMAT =
+# YEAR_MONTH_FORMAT =
+# MONTH_DAY_FORMAT =
+# SHORT_DATE_FORMAT =
+# SHORT_DATETIME_FORMAT =
+# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
-# DATE_INPUT_FORMATS =
-# TIME_INPUT_FORMATS =
-# DATETIME_INPUT_FORMATS =
-# DECIMAL_SEPARATOR =
-# THOUSAND_SEPARATOR =
-# NUMBER_GROUPING =
+# DATE_INPUT_FORMATS =
+# TIME_INPUT_FORMATS =
+# DATETIME_INPUT_FORMATS =
+# DECIMAL_SEPARATOR =
+# THOUSAND_SEPARATOR =
+# NUMBER_GROUPING =
diff --git a/django/conf/urls/__init__.py b/django/conf/urls/__init__.py
index f4a129a9e0..fff5e35582 100644
--- a/django/conf/urls/__init__.py
+++ b/django/conf/urls/__init__.py
@@ -61,4 +61,3 @@ def url(regex, view, kwargs=None, name=None, prefix=''):
if prefix:
view = prefix + '.' + view
return RegexURLPattern(regex, view, kwargs, name)
-
diff --git a/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js b/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js
index c82c8c05cb..0d7ca41d94 100644
--- a/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js
+++ b/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js
@@ -13,7 +13,7 @@ function html_unescape(text) {
// IE doesn't accept periods or dashes in the window name, but the element IDs
// we use to generate popup window names may contain them, therefore we map them
-// to allowed characters in a reversible way so that we can locate the correct
+// to allowed characters in a reversible way so that we can locate the correct
// element when the popup window is dismissed.
function id_to_windowname(text) {
text = text.replace(/\./g, '__dot__');
diff --git a/django/contrib/auth/fixtures/natural.json b/django/contrib/auth/fixtures/natural.json
index 795c1a3b7a..7811c7a548 100644
--- a/django/contrib/auth/fixtures/natural.json
+++ b/django/contrib/auth/fixtures/natural.json
@@ -1,31 +1,31 @@
[
{
- "pk": 1,
- "model": "auth.group",
+ "pk": 1,
+ "model": "auth.group",
"fields": {
- "name": "my_group",
+ "name": "my_group",
"permissions": []
}
- },
+ },
{
- "pk": 1,
- "model": "auth.user",
+ "pk": 1,
+ "model": "auth.user",
"fields": {
- "username": "my_username",
- "first_name": "",
- "last_name": "",
- "is_active": true,
- "is_superuser": true,
- "is_staff": true,
- "last_login": "2012-01-13 00:14:00",
+ "username": "my_username",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": true,
+ "is_staff": true,
+ "last_login": "2012-01-13 00:14:00",
"groups": [
[
"my_group"
]
- ],
- "user_permissions": [],
- "password": "pbkdf2_sha256$10000$LUyhxJjuLwXF$f6Zbpnx1L5dPze8m0itBaHMDyZ/n6JyhuavQy2RrBIM=",
- "email": "email@example.com",
+ ],
+ "user_permissions": [],
+ "password": "pbkdf2_sha256$10000$LUyhxJjuLwXF$f6Zbpnx1L5dPze8m0itBaHMDyZ/n6JyhuavQy2RrBIM=",
+ "email": "email@example.com",
"date_joined": "2012-01-13 00:14:00"
}
}
diff --git a/django/contrib/auth/fixtures/regular.json b/django/contrib/auth/fixtures/regular.json
index dad891df2c..b9f2680766 100644
--- a/django/contrib/auth/fixtures/regular.json
+++ b/django/contrib/auth/fixtures/regular.json
@@ -1,29 +1,29 @@
[
{
- "pk": 1,
- "model": "auth.group",
+ "pk": 1,
+ "model": "auth.group",
"fields": {
- "name": "my_group",
+ "name": "my_group",
"permissions": []
}
- },
+ },
{
- "pk": 1,
- "model": "auth.user",
+ "pk": 1,
+ "model": "auth.user",
"fields": {
- "username": "my_username",
- "first_name": "",
- "last_name": "",
- "is_active": true,
- "is_superuser": true,
- "is_staff": true,
- "last_login": "2012-01-13 00:14:00",
+ "username": "my_username",
+ "first_name": "",
+ "last_name": "",
+ "is_active": true,
+ "is_superuser": true,
+ "is_staff": true,
+ "last_login": "2012-01-13 00:14:00",
"groups": [
1
- ],
- "user_permissions": [],
- "password": "pbkdf2_sha256$10000$LUyhxJjuLwXF$f6Zbpnx1L5dPze8m0itBaHMDyZ/n6JyhuavQy2RrBIM=",
- "email": "email@example.com",
+ ],
+ "user_permissions": [],
+ "password": "pbkdf2_sha256$10000$LUyhxJjuLwXF$f6Zbpnx1L5dPze8m0itBaHMDyZ/n6JyhuavQy2RrBIM=",
+ "email": "email@example.com",
"date_joined": "2012-01-13 00:14:00"
}
}
diff --git a/django/contrib/auth/hashers.py b/django/contrib/auth/hashers.py
index f6dfaa6b34..c49c25ce66 100644
--- a/django/contrib/auth/hashers.py
+++ b/django/contrib/auth/hashers.py
@@ -501,4 +501,3 @@ class CryptPasswordHasher(BasePasswordHasher):
(_('salt'), salt),
(_('hash'), mask_hash(data, show=3)),
])
-
diff --git a/django/contrib/auth/tests/templates/context_processors/auth_attrs_no_access.html b/django/contrib/auth/tests/templates/context_processors/auth_attrs_no_access.html
index 8d1c8b69c3..8b13789179 100644
--- a/django/contrib/auth/tests/templates/context_processors/auth_attrs_no_access.html
+++ b/django/contrib/auth/tests/templates/context_processors/auth_attrs_no_access.html
@@ -1 +1 @@
-
+
diff --git a/django/contrib/auth/tests/test_context_processors.py b/django/contrib/auth/tests/test_context_processors.py
index d1d912eb15..bf30790a8a 100644
--- a/django/contrib/auth/tests/test_context_processors.py
+++ b/django/contrib/auth/tests/test_context_processors.py
@@ -112,7 +112,7 @@ class AuthContextProcessorTests(TestCase):
self.assertContains(response, "Has auth permissions")
self.assertContains(response, "Has auth.add_permission permissions")
self.assertNotContains(response, "nonexisting")
-
+
def test_perm_in_perms_attrs(self):
u = User.objects.create_user(username='normal', password='secret')
u.user_permissions.add(
diff --git a/django/contrib/comments/moderation.py b/django/contrib/comments/moderation.py
index 6648aebb59..cdf00a9a24 100644
--- a/django/contrib/comments/moderation.py
+++ b/django/contrib/comments/moderation.py
@@ -334,7 +334,7 @@ class Moderator(object):
moderation_class = self._registry[model]
# Comment will be disallowed outright (HTTP 403 response)
- if not moderation_class.allow(comment, content_object, request):
+ if not moderation_class.allow(comment, content_object, request):
return False
if moderation_class.moderate(comment, content_object, request):
diff --git a/django/contrib/flatpages/tests/test_forms.py b/django/contrib/flatpages/tests/test_forms.py
index 29fc0cabb9..e60daead03 100644
--- a/django/contrib/flatpages/tests/test_forms.py
+++ b/django/contrib/flatpages/tests/test_forms.py
@@ -96,4 +96,3 @@ class FlatpageAdminFormTests(TestCase):
self.assertEqual(
f.errors,
{'sites': [translation.ugettext('This field is required.')]})
-
diff --git a/django/contrib/flatpages/tests/test_middleware.py b/django/contrib/flatpages/tests/test_middleware.py
index 1ad8fa93b3..79e046b7a1 100644
--- a/django/contrib/flatpages/tests/test_middleware.py
+++ b/django/contrib/flatpages/tests/test_middleware.py
@@ -154,5 +154,3 @@ class FlatpageMiddlewareAppendSlashTests(TestCase):
response = self.client.get('/')
self.assertEqual(response.status_code, 200)
self.assertContains(response, "<p>Root</p>")
-
-
diff --git a/django/contrib/flatpages/tests/test_templatetags.py b/django/contrib/flatpages/tests/test_templatetags.py
index 23fa8faf2d..473abce1b1 100644
--- a/django/contrib/flatpages/tests/test_templatetags.py
+++ b/django/contrib/flatpages/tests/test_templatetags.py
@@ -133,4 +133,3 @@ class FlatpageTemplateTagTests(TestCase):
"{% load flatpages %}{% get_flatpages for user as flatpages asdf%}")
self.assertRaises(TemplateSyntaxError, render,
"{% load flatpages %}{% get_flatpages prefix for user as flatpages asdf%}")
-
diff --git a/django/contrib/flatpages/tests/urls.py b/django/contrib/flatpages/tests/urls.py
index e0e7a074b0..77a70939f1 100644
--- a/django/contrib/flatpages/tests/urls.py
+++ b/django/contrib/flatpages/tests/urls.py
@@ -5,4 +5,3 @@ urlpatterns = patterns('',
(r'^flatpage_root', include('django.contrib.flatpages.urls')),
(r'^accounts/', include('django.contrib.auth.urls')),
)
-
diff --git a/django/contrib/formtools/tests/wizard/namedwizardtests/forms.py b/django/contrib/formtools/tests/wizard/namedwizardtests/forms.py
index 39e914d05d..c89f51e179 100644
--- a/django/contrib/formtools/tests/wizard/namedwizardtests/forms.py
+++ b/django/contrib/formtools/tests/wizard/namedwizardtests/forms.py
@@ -49,4 +49,3 @@ class SessionContactWizard(ContactWizard):
class CookieContactWizard(ContactWizard):
storage_name = 'django.contrib.formtools.wizard.storage.cookie.CookieStorage'
-
diff --git a/django/contrib/formtools/tests/wizard/test_loadstorage.py b/django/contrib/formtools/tests/wizard/test_loadstorage.py
index bb0b06eecf..f0f350e712 100644
--- a/django/contrib/formtools/tests/wizard/test_loadstorage.py
+++ b/django/contrib/formtools/tests/wizard/test_loadstorage.py
@@ -15,4 +15,3 @@ class TestLoadStorage(TestCase):
'django.contrib.formtools.wizard.storage.idontexist.IDontExistStorage', 'wizard1')
self.assertRaises(MissingStorage, get_storage,
'django.contrib.formtools.wizard.storage.base.IDontExistStorage', 'wizard1')
-
diff --git a/django/contrib/formtools/tests/wizard/wizardtests/forms.py b/django/contrib/formtools/tests/wizard/wizardtests/forms.py
index dbb0e83d6f..ad565478d1 100644
--- a/django/contrib/formtools/tests/wizard/wizardtests/forms.py
+++ b/django/contrib/formtools/tests/wizard/wizardtests/forms.py
@@ -63,4 +63,3 @@ class SessionContactWizard(ContactWizard):
class CookieContactWizard(ContactWizard):
storage_name = 'django.contrib.formtools.wizard.storage.cookie.CookieStorage'
-
diff --git a/django/contrib/gis/db/backends/spatialite/client.py b/django/contrib/gis/db/backends/spatialite/client.py
index 536065a800..f9684877c5 100644
--- a/django/contrib/gis/db/backends/spatialite/client.py
+++ b/django/contrib/gis/db/backends/spatialite/client.py
@@ -2,4 +2,3 @@ from django.db.backends.sqlite3.client import DatabaseClient
class SpatiaLiteClient(DatabaseClient):
executable_name = 'spatialite'
-
diff --git a/django/contrib/gis/db/models/sql/conversion.py b/django/contrib/gis/db/models/sql/conversion.py
index 160b623e6d..6687befa24 100644
--- a/django/contrib/gis/db/models/sql/conversion.py
+++ b/django/contrib/gis/db/models/sql/conversion.py
@@ -21,7 +21,7 @@ class DistanceField(BaseField):
class GeomField(BaseField):
"""
- Wrapper for Geometry values. It is a lightweight alternative to
+ Wrapper for Geometry values. It is a lightweight alternative to
using GeometryField (which requires an SQL query upon instantiation).
"""
pass
diff --git a/django/contrib/gis/feeds.py b/django/contrib/gis/feeds.py
index 89bc8c531e..b1d00779c7 100644
--- a/django/contrib/gis/feeds.py
+++ b/django/contrib/gis/feeds.py
@@ -64,7 +64,7 @@ class GeoFeedMixin(object):
# Getting the lower-case geometry type.
gtype = str(geom.geom_type).lower()
if gtype == 'point':
- self.add_georss_point(handler, geom.coords, w3c_geo=w3c_geo)
+ self.add_georss_point(handler, geom.coords, w3c_geo=w3c_geo)
else:
if w3c_geo: raise ValueError('W3C Geo only supports Point geometries.')
# For formatting consistent w/the GeoRSS simple standard:
diff --git a/django/contrib/gis/gdal/__init__.py b/django/contrib/gis/gdal/__init__.py
index 2aa867bb69..cf3de0d3aa 100644
--- a/django/contrib/gis/gdal/__init__.py
+++ b/django/contrib/gis/gdal/__init__.py
@@ -52,4 +52,3 @@ try:
except ImportError:
# No ctypes, but don't raise an exception.
pass
-
diff --git a/django/contrib/gis/gdal/base.py b/django/contrib/gis/gdal/base.py
index e86277e95e..0ccaac0f2e 100644
--- a/django/contrib/gis/gdal/base.py
+++ b/django/contrib/gis/gdal/base.py
@@ -33,4 +33,3 @@ class GDALBase(object):
raise TypeError('Incompatible pointer type')
ptr = property(_get_ptr, _set_ptr)
-
diff --git a/django/contrib/gis/gdal/envelope.py b/django/contrib/gis/gdal/envelope.py
index f145526af0..9774f686e7 100644
--- a/django/contrib/gis/gdal/envelope.py
+++ b/django/contrib/gis/gdal/envelope.py
@@ -36,7 +36,7 @@ class Envelope(object):
The initialization function may take an OGREnvelope structure, 4-element
tuple or list, or 4 individual arguments.
"""
-
+
if len(args) == 1:
if isinstance(args[0], OGREnvelope):
# OGREnvelope (a ctypes Structure) was passed in.
@@ -87,48 +87,48 @@ class Envelope(object):
self._envelope.MinY = seq[1]
self._envelope.MaxX = seq[2]
self._envelope.MaxY = seq[3]
-
- def expand_to_include(self, *args):
- """
- Modifies the envelope to expand to include the boundaries of
- the passed-in 2-tuple (a point), 4-tuple (an extent) or
- envelope.
- """
- # We provide a number of different signatures for this method,
- # and the logic here is all about converting them into a
- # 4-tuple single parameter which does the actual work of
- # expanding the envelope.
- if len(args) == 1:
- if isinstance(args[0], Envelope):
- return self.expand_to_include(args[0].tuple)
+
+ def expand_to_include(self, *args):
+ """
+ Modifies the envelope to expand to include the boundaries of
+ the passed-in 2-tuple (a point), 4-tuple (an extent) or
+ envelope.
+ """
+ # We provide a number of different signatures for this method,
+ # and the logic here is all about converting them into a
+ # 4-tuple single parameter which does the actual work of
+ # expanding the envelope.
+ if len(args) == 1:
+ if isinstance(args[0], Envelope):
+ return self.expand_to_include(args[0].tuple)
elif hasattr(args[0], 'x') and hasattr(args[0], 'y'):
- return self.expand_to_include(args[0].x, args[0].y, args[0].x, args[0].y)
- elif isinstance(args[0], (tuple, list)):
- # A tuple was passed in.
- if len(args[0]) == 2:
- return self.expand_to_include((args[0][0], args[0][1], args[0][0], args[0][1]))
- elif len(args[0]) == 4:
- (minx, miny, maxx, maxy) = args[0]
- if minx < self._envelope.MinX:
- self._envelope.MinX = minx
- if miny < self._envelope.MinY:
- self._envelope.MinY = miny
- if maxx > self._envelope.MaxX:
- self._envelope.MaxX = maxx
- if maxy > self._envelope.MaxY:
- self._envelope.MaxY = maxy
- else:
- raise OGRException('Incorrect number of tuple elements (%d).' % len(args[0]))
- else:
- raise TypeError('Incorrect type of argument: %s' % str(type(args[0])))
- elif len(args) == 2:
- # An x and an y parameter were passed in
- return self.expand_to_include((args[0], args[1], args[0], args[1]))
- elif len(args) == 4:
+ return self.expand_to_include(args[0].x, args[0].y, args[0].x, args[0].y)
+ elif isinstance(args[0], (tuple, list)):
+ # A tuple was passed in.
+ if len(args[0]) == 2:
+ return self.expand_to_include((args[0][0], args[0][1], args[0][0], args[0][1]))
+ elif len(args[0]) == 4:
+ (minx, miny, maxx, maxy) = args[0]
+ if minx < self._envelope.MinX:
+ self._envelope.MinX = minx
+ if miny < self._envelope.MinY:
+ self._envelope.MinY = miny
+ if maxx > self._envelope.MaxX:
+ self._envelope.MaxX = maxx
+ if maxy > self._envelope.MaxY:
+ self._envelope.MaxY = maxy
+ else:
+ raise OGRException('Incorrect number of tuple elements (%d).' % len(args[0]))
+ else:
+ raise TypeError('Incorrect type of argument: %s' % str(type(args[0])))
+ elif len(args) == 2:
+ # An x and an y parameter were passed in
+ return self.expand_to_include((args[0], args[1], args[0], args[1]))
+ elif len(args) == 4:
# Individual parameters passed in.
- return self.expand_to_include(args)
- else:
- raise OGRException('Incorrect number (%d) of arguments.' % len(args[0]))
+ return self.expand_to_include(args)
+ else:
+ raise OGRException('Incorrect number (%d) of arguments.' % len(args[0]))
@property
def min_x(self):
diff --git a/django/contrib/gis/gdal/error.py b/django/contrib/gis/gdal/error.py
index 1d89ad1a42..bd337adbb1 100644
--- a/django/contrib/gis/gdal/error.py
+++ b/django/contrib/gis/gdal/error.py
@@ -32,7 +32,7 @@ OGRERR_NONE = 0
def check_err(code):
"Checks the given OGRERR, and raises an exception where appropriate."
-
+
if code == OGRERR_NONE:
return
elif code in OGRERR_DICT:
diff --git a/django/contrib/gis/gdal/prototypes/ds.py b/django/contrib/gis/gdal/prototypes/ds.py
index f798069fd0..11d3b2452f 100644
--- a/django/contrib/gis/gdal/prototypes/ds.py
+++ b/django/contrib/gis/gdal/prototypes/ds.py
@@ -1,6 +1,6 @@
"""
This module houses the ctypes function prototypes for OGR DataSource
- related data structures. OGR_Dr_*, OGR_DS_*, OGR_L_*, OGR_F_*,
+ related data structures. OGR_Dr_*, OGR_DS_*, OGR_L_*, OGR_F_*,
OGR_Fld_* routines are relevant here.
"""
from ctypes import c_char_p, c_double, c_int, c_long, c_void_p, POINTER
diff --git a/django/contrib/gis/gdal/prototypes/generation.py b/django/contrib/gis/gdal/prototypes/generation.py
index 577d29bbaa..229733e168 100644
--- a/django/contrib/gis/gdal/prototypes/generation.py
+++ b/django/contrib/gis/gdal/prototypes/generation.py
@@ -77,7 +77,7 @@ def string_output(func, argtypes, offset=-1, str_result=False, decoding=None):
"""
Generates a ctypes prototype for the given function with the
given argument types that returns a string from a GDAL pointer.
- The `const` flag indicates whether the allocated pointer should
+ The `const` flag indicates whether the allocated pointer should
be freed via the GDAL library routine VSIFree -- but only applies
only when `str_result` is True.
"""
@@ -114,7 +114,7 @@ def void_output(func, argtypes, errcheck=True):
func.errcheck = check_errcode
else:
func.restype = None
-
+
return func
def voidptr_output(func, argtypes):
diff --git a/django/contrib/gis/gdal/prototypes/geom.py b/django/contrib/gis/gdal/prototypes/geom.py
index fa0b503c65..6a5239399e 100644
--- a/django/contrib/gis/gdal/prototypes/geom.py
+++ b/django/contrib/gis/gdal/prototypes/geom.py
@@ -34,7 +34,7 @@ to_kml = string_output(lgdal.OGR_G_ExportToKML, [c_void_p, c_char_p], str_result
getx = pnt_func(lgdal.OGR_G_GetX)
gety = pnt_func(lgdal.OGR_G_GetY)
getz = pnt_func(lgdal.OGR_G_GetZ)
-
+
# Geometry creation routines.
from_wkb = geom_output(lgdal.OGR_G_CreateFromWkb, [c_char_p, c_void_p, POINTER(c_void_p), c_int], offset=-2)
from_wkt = geom_output(lgdal.OGR_G_CreateFromWkt, [POINTER(c_char_p), c_void_p, POINTER(c_void_p)], offset=-1)
@@ -95,4 +95,3 @@ geom_transform_to = void_output(lgdal.OGR_G_TransformTo, [c_void_p, c_void_p])
# For retrieving the envelope of the geometry.
get_envelope = env_func(lgdal.OGR_G_GetEnvelope, [c_void_p, POINTER(OGREnvelope)])
-
diff --git a/django/contrib/gis/geos/__init__.py b/django/contrib/gis/geos/__init__.py
index 945f561fb7..9e7c700aa0 100644
--- a/django/contrib/gis/geos/__init__.py
+++ b/django/contrib/gis/geos/__init__.py
@@ -1,6 +1,6 @@
"""
The GeoDjango GEOS module. Please consult the GeoDjango documentation
-for more details:
+for more details:
http://geodjango.org/docs/geos.html
"""
try:
diff --git a/django/contrib/gis/geos/error.py b/django/contrib/gis/geos/error.py
index 46bdfe691a..0ebc54f7cc 100644
--- a/django/contrib/gis/geos/error.py
+++ b/django/contrib/gis/geos/error.py
@@ -15,6 +15,6 @@ class GEOSIndexError(GEOSException, KeyError):
an Exception is raised. Fixes ticket #4740.
"""
# "If, during the method lookup, a method raises an exception, the exception
- # will be propagated, unless the exception has an attribute
+ # will be propagated, unless the exception has an attribute
# `silent_variable_failure` whose value is True." -- Django template docs.
silent_variable_failure = True
diff --git a/django/contrib/gis/geos/io.py b/django/contrib/gis/geos/io.py
index 54ba6b4ac5..1c13d365f7 100644
--- a/django/contrib/gis/geos/io.py
+++ b/django/contrib/gis/geos/io.py
@@ -16,5 +16,3 @@ class WKTReader(_WKTReader):
def read(self, wkt):
"Returns a GEOSGeometry for the given WKT string."
return GEOSGeometry(super(WKTReader, self).read(wkt))
-
-
diff --git a/django/contrib/gis/geos/prototypes/topology.py b/django/contrib/gis/geos/prototypes/topology.py
index dfea3e98b6..8bd5dc08cc 100644
--- a/django/contrib/gis/geos/prototypes/topology.py
+++ b/django/contrib/gis/geos/prototypes/topology.py
@@ -3,7 +3,7 @@
topological operations on geometries.
"""
__all__ = ['geos_boundary', 'geos_buffer', 'geos_centroid', 'geos_convexhull',
- 'geos_difference', 'geos_envelope', 'geos_intersection',
+ 'geos_difference', 'geos_envelope', 'geos_intersection',
'geos_linemerge', 'geos_pointonsurface', 'geos_preservesimplify',
'geos_simplify', 'geos_symdifference', 'geos_union', 'geos_relate']
diff --git a/django/contrib/gis/maps/google/__init__.py b/django/contrib/gis/maps/google/__init__.py
index 9be689c07a..37fdf94f1e 100644
--- a/django/contrib/gis/maps/google/__init__.py
+++ b/django/contrib/gis/maps/google/__init__.py
@@ -30,20 +30,20 @@
{{ google.style }} => "<style>{{ google.vml_css }}</style>"
Explanation:
- - The `xhtml` property provides the correct XML namespace needed for
+ - The `xhtml` property provides the correct XML namespace needed for
Google Maps to operate in IE using XHTML. Google Maps on IE uses
- VML to draw polylines. Returns, by default:
+ VML to draw polylines. Returns, by default:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
-
+
- The `style` property provides the correct style tag for the CSS
properties required by Google Maps on IE:
<style type="text/css">v\:* {behavior:url(#default#VML);}</style>
- - The `scripts` property provides the necessary <script> tags for
+ - The `scripts` property provides the necessary <script> tags for
including the Google Maps javascript, as well as including the
generated javascript.
- - The `body` property provides the correct attributes for the
+ - The `body` property provides the correct attributes for the
body tag to load the generated javascript. By default, returns:
<body onload="gmap_load()" onunload="GUnload()">
diff --git a/django/contrib/gis/shortcuts.py b/django/contrib/gis/shortcuts.py
index 16b0fdff9e..85f9bfd0c0 100644
--- a/django/contrib/gis/shortcuts.py
+++ b/django/contrib/gis/shortcuts.py
@@ -21,7 +21,7 @@ def render_to_kml(*args, **kwargs):
def render_to_kmz(*args, **kwargs):
"""
- Compresses the KML content and returns as KMZ (using the correct
+ Compresses the KML content and returns as KMZ (using the correct
MIME type).
"""
return HttpResponse(compress_kml(loader.render_to_string(*args, **kwargs)),
diff --git a/django/contrib/gis/sitemaps/__init__.py b/django/contrib/gis/sitemaps/__init__.py
index 9b6287f899..b2c96e4a55 100644
--- a/django/contrib/gis/sitemaps/__init__.py
+++ b/django/contrib/gis/sitemaps/__init__.py
@@ -1,4 +1,3 @@
# Geo-enabled Sitemap classes.
from django.contrib.gis.sitemaps.georss import GeoRSSSitemap
from django.contrib.gis.sitemaps.kml import KMLSitemap, KMZSitemap
-
diff --git a/django/contrib/gis/sitemaps/georss.py b/django/contrib/gis/sitemaps/georss.py
index ccb7dc2e91..7dd2701221 100644
--- a/django/contrib/gis/sitemaps/georss.py
+++ b/django/contrib/gis/sitemaps/georss.py
@@ -50,4 +50,3 @@ class GeoRSSSitemap(Sitemap):
def location(self, obj):
return urlresolvers.reverse('django.contrib.gis.views.feed', args=(obj,))
-
diff --git a/django/contrib/gis/sitemaps/kml.py b/django/contrib/gis/sitemaps/kml.py
index 837fe62b62..dd12429ed6 100644
--- a/django/contrib/gis/sitemaps/kml.py
+++ b/django/contrib/gis/sitemaps/kml.py
@@ -13,7 +13,7 @@ class KMLSitemap(Sitemap):
# If no locations specified, then we try to build for
# every model in installed applications.
self.locations = self._build_kml_sources(locations)
-
+
def _build_kml_sources(self, sources):
"""
Goes through the given sources and returns a 3-tuple of
@@ -33,7 +33,7 @@ class KMLSitemap(Sitemap):
source._meta.model_name,
field.name))
elif isinstance(source, (list, tuple)):
- if len(source) != 3:
+ if len(source) != 3:
raise ValueError('Must specify a 3-tuple of (app_label, module_name, field_name).')
kml_sources.append(source)
else:
@@ -54,7 +54,7 @@ class KMLSitemap(Sitemap):
def location(self, obj):
return urlresolvers.reverse('django.contrib.gis.sitemaps.views.%s' % self.geo_format,
- kwargs={'label' : obj[0],
+ kwargs={'label' : obj[0],
'model' : obj[1],
'field_name': obj[2],
}
diff --git a/django/contrib/gis/templates/gis/admin/openlayers.html b/django/contrib/gis/templates/gis/admin/openlayers.html
index a61b68921f..8d441cd664 100644
--- a/django/contrib/gis/templates/gis/admin/openlayers.html
+++ b/django/contrib/gis/templates/gis/admin/openlayers.html
@@ -5,11 +5,11 @@
#{{ id }}_map .aligned label { float:inherit; }
#{{ id }}_admin_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; }
{% if not display_wkt %}#{{ id }} { display: none; }{% endif %}
- .olControlEditingToolbar .olControlModifyFeatureItemActive {
+ .olControlEditingToolbar .olControlModifyFeatureItemActive {
background-image: url("{% static "admin/img/gis/move_vertex_on.png" %}");
background-repeat: no-repeat;
}
- .olControlEditingToolbar .olControlModifyFeatureItemInactive {
+ .olControlEditingToolbar .olControlModifyFeatureItemInactive {
background-image: url("{% static "admin/img/gis/move_vertex_off.png" %}");
background-repeat: no-repeat;
}
diff --git a/django/contrib/gis/tests/data/geometries.json b/django/contrib/gis/tests/data/geometries.json
index b1a6ad14bf..c2b9e4f27e 100644
--- a/django/contrib/gis/tests/data/geometries.json
+++ b/django/contrib/gis/tests/data/geometries.json
@@ -5,7 +5,7 @@
{"wkt": "POLYGON ((0 0, 0 100, 100 100, 100 0, 0 0))", "n_i": 0, "ext_ring_cs": [[0, 0], [0, 100], [100, 100], [100, 0], [0, 0]], "n_p": 5, "area": 10000.0, "centroid": [50.0, 50.0]},
{"wkt": "POLYGON ((-95.3848703124799471 29.7056021479768511, -95.3851905195191847 29.7046588196500281, -95.3859356966379011 29.7025053545605502, -95.3860723000647539 29.7020963367038391, -95.3871517697222089 29.6989779021280995, -95.3865578518265522 29.6990856888057202, -95.3862634205175226 29.6999471753441782, -95.3861991779541967 29.6999591988978615, -95.3856773799358137 29.6998323107113578, -95.3856209915427229 29.6998005235473741, -95.3855833545501639 29.6996619391729801, -95.3855776331865002 29.6996232659570047, -95.3850162731712885 29.6997236706530536, -95.3831047357410284 29.7000847603095082, -95.3829800724914776 29.7000676365023502, -95.3828084594470909 29.6999969684031200, -95.3828131504821499 29.6999090511531065, -95.3828022942979601 29.6998152117366025, -95.3827893930918833 29.6997790953076759, -95.3825174668099862 29.6998267772748825, -95.3823521544804862 29.7000451723151606, -95.3820491918785223 29.6999682034582335, -95.3817932841505893 29.6999640407204772, -95.3815438924600443 29.7005983712500630, -95.3807812390843424 29.7007538492921590, -95.3778578936435935 29.7012966201172048, -95.3770817300034679 29.7010555145969093, -95.3772763716395957 29.7004995005932031, -95.3769891024414420 29.7005797730360186, -95.3759855007185990 29.7007754783987821, -95.3759516423090474 29.7007305400669388, -95.3765252155960042 29.6989549173240874, -95.3766842746727832 29.6985134987163164, -95.3768510987262914 29.6980530300744938, -95.3769198676258014 29.6977137204527573, -95.3769616670751930 29.6973351617272172, -95.3770309229297766 29.6969821084304186, -95.3772352596880637 29.6959751305871613, -95.3776232419333354 29.6945439060847463, -95.3776849628727064 29.6943364710766069, -95.3779699491714723 29.6926548349458947, -95.3781945479573494 29.6920088336742545, -95.3785807118394189 29.6908279316076005, -95.3787441368896651 29.6908846275832197, -95.3787903214163890 29.6907152912461640, -95.3791765069353659 29.6893335376821526, -95.3794935959513026 29.6884781789101595, -95.3796592071232112 29.6880066681407619, -95.3799788182090111 29.6873687353035081, -95.3801545516183893 29.6868782380716993, -95.3801258908302145 29.6867756621337762, -95.3801104284899566 29.6867229678809572, -95.3803803523746154 29.6863753372986459, -95.3821028558287622 29.6837392961470421, -95.3827289584682205 29.6828097375216160, -95.3827494698109035 29.6790739156259278, -95.3826022014838486 29.6776502228345507, -95.3825047356438063 29.6765773006280753, -95.3823473035336917 29.6750405250369127, -95.3824540163482055 29.6750076408228587, -95.3838984230304305 29.6745679207378679, -95.3916547074937426 29.6722459226508377, -95.3926154662749468 29.6719609085105489, -95.3967246645118081 29.6707316485589736, -95.3974588054406780 29.6705065336410989, -95.3978523748756828 29.6703795547846845, -95.3988598162279970 29.6700874981900853, -95.3995628600665952 29.6698505300412414, -95.4134721665944170 29.6656841279906232, -95.4143262068232616 29.6654291174019278, -95.4159685142480214 29.6649750989232288, -95.4180067396277565 29.6643253024318021, -95.4185886692196590 29.6641482768691063, -95.4234155309609662 29.6626925393704788, -95.4287785503196346 29.6611023620959706, -95.4310287312749352 29.6604222580752648, -95.4320295629628959 29.6603361318136720, -95.4332899683975739 29.6600560661713608, -95.4342675748811047 29.6598454934599900, -95.4343110414310871 29.6598411486215490, -95.4345576779282538 29.6598147020668499, -95.4348823041721630 29.6597875803673112, -95.4352827715209457 29.6597762346946681, -95.4355290431309982 29.6597827926562374, -95.4359197997999331 29.6598014511782715, -95.4361907884752156 29.6598444333523368, -95.4364608955807228 29.6598901433108217, -95.4367250147512323 29.6599494499910712, -95.4364898759758091 29.6601880616540186, -95.4354501111810691 29.6616378572201107, -95.4381459623171224 29.6631265631655126, -95.4367852490863129 29.6642266600024023, -95.4370040894557263 29.6643425389568769, -95.4367078350812648 29.6645492592343238, -95.4366081749871285 29.6646291473027297, -95.4358539359938192 29.6652308742342932, -95.4350327668927889 29.6658995989314462, -95.4350580905272921 29.6678812477895271, -95.4349710541447536 29.6680054925936965, -95.4349500440473548 29.6671410080890006, -95.4341492724148850 29.6678790545191688, -95.4340248868274728 29.6680353198492135, -95.4333227845797438 29.6689245624945990, -95.4331325652123326 29.6691616138940901, -95.4321314741096955 29.6704473333237253, -95.4320435792664341 29.6702578985411982, -95.4320147929883547 29.6701800936425109, -95.4319764538662980 29.6683246590817085, -95.4317490976340679 29.6684974372577166, -95.4305958185342718 29.6694049049170374, -95.4296600735653016 29.6701723430938493, -95.4284928989940937 29.6710931793380972, -95.4274630532378580 29.6719378813640091, -95.4273056811974811 29.6720684984625791, -95.4260554084574864 29.6730668861566969, -95.4253558063699643 29.6736342467365724, -95.4249278826026028 29.6739557343648919, -95.4248648873821423 29.6745400910786152, -95.4260016131471929 29.6750987014005858, -95.4258567183010911 29.6753452063069929, -95.4260238081486847 29.6754322077221353, -95.4258707374502393 29.6756647377294307, -95.4257951755816691 29.6756407098663360, -95.4257701599566985 29.6761077719536068, -95.4257726684792260 29.6761711204603955, -95.4257980187195614 29.6770219651929423, -95.4252712669032519 29.6770161558853758, -95.4249234392992065 29.6770068683962300, -95.4249574272905789 29.6779707498635759, -95.4244725881033702 29.6779825646764159, -95.4222269476429545 29.6780711474441716, -95.4223032371999267 29.6796029391538809, -95.4239133706588945 29.6795331493690355, -95.4224579084327331 29.6813706893847780, -95.4224290108823965 29.6821953228763924, -95.4230916478977349 29.6822130268724109, -95.4222928279595521 29.6832041816675343, -95.4228763710016352 29.6832087677714505, -95.4223401691637179 29.6838987872753748, -95.4211655906087088 29.6838784024852984, -95.4201984153205558 29.6851319258758082, -95.4206156387716362 29.6851623398125319, -95.4213438084897660 29.6851763011334739, -95.4212071118618752 29.6853679931624974, -95.4202651399651245 29.6865313962980508, -95.4172061157659783 29.6865816431043932, -95.4182217951255183 29.6872251197301544, -95.4178664826439160 29.6876750901471631, -95.4180678442928780 29.6877960336377207, -95.4188763472917572 29.6882826379510938, -95.4185374500596311 29.6887137897831934, -95.4182121713132290 29.6885097429738813, -95.4179857231741551 29.6888118367840086, -95.4183106010563620 29.6890048676118212, -95.4179489865331334 29.6894546700979056, -95.4175581746284820 29.6892323606815438, -95.4173439957341571 29.6894990139807007, -95.4177411199311081 29.6897435034738422, -95.4175789200209721 29.6899207529979208, -95.4170598559864800 29.6896042165807508, -95.4166733682539814 29.6900891174451367, -95.4165941362704331 29.6900347214235047, -95.4163537218065301 29.6903529467753238, -95.4126843270708775 29.6881086357212780, -95.4126604121378392 29.6880942378803496, -95.4126672298953338 29.6885951670109982, -95.4126680884821923 29.6887052446594275, -95.4158080137241882 29.6906382377959339, -95.4152061403821961 29.6910871045531586, -95.4155842583188161 29.6917382915894308, -95.4157426793520358 29.6920726941677096, -95.4154520563662203 29.6922052332446427, -95.4151389936167078 29.6923261661269571, -95.4148649784384872 29.6924343866430256, -95.4144051352401590 29.6925623927348106, -95.4146792019416665 29.6926770338507744, -95.4148824479948985 29.6928117893696388, -95.4149851734360226 29.6929823719519774, -95.4140436551925291 29.6929626643100946, -95.4140465993023241 29.6926545917254892, -95.4137269186733334 29.6927395764256090, -95.4137372859685513 29.6935432485666624, -95.4135702836218655 29.6933186678088283, -95.4133925235973237 29.6930415229852152, -95.4133017035615580 29.6928685062036166, -95.4129588921634593 29.6929391128977862, -95.4125107395559695 29.6930481664661485, -95.4102647423187307 29.6935850183258019, -95.4081931340840157 29.6940907430947760, -95.4078783596459772 29.6941703429951609, -95.4049213975000043 29.6948723732981961, -95.4045944244127071 29.6949626434239207, -95.4045865139788134 29.6954109019001358, -95.4045953345484037 29.6956972800496963, -95.4038879332535146 29.6958296089365490, -95.4040366394459340 29.6964389004769842, -95.4032774779020798 29.6965643341263892, -95.4026066501239853 29.6966646227683881, -95.4024991226393837 29.6961389766619703, -95.4011781398631911 29.6963566063186377, -95.4011524097636112 29.6962596176762190, -95.4018184046368276 29.6961399466727336, -95.4016995838361908 29.6956442609415099, -95.4007100753964608 29.6958900524002978, -95.4008032469935188 29.6962639900781404, -95.3995660267125487 29.6965636449370329, -95.3996140564775601 29.6967877962763644, -95.3996364430014410 29.6968901984825280, -95.3984003269631842 29.6968679634805746, -95.3981442026887265 29.6983660679730335, -95.3980178461957706 29.6990890276252415, -95.3977097967130163 29.7008526152273049, -95.3962347157626027 29.7009697553607630, -95.3951949050136250 29.7004740386619019, -95.3957564950617183 29.6990281830553187, -95.3965927101519924 29.6968771129030706, -95.3957496517238184 29.6970800358387095, -95.3957720559467361 29.6972264611230727, -95.3957391586571788 29.6973548894558732, -95.3956286413405365 29.6974949857280883, -95.3955111053256957 29.6975661086270186, -95.3953215342724121 29.6976022763384790, -95.3951795558443365 29.6975846977491038, -95.3950369632041060 29.6975175779330200, -95.3949401089966500 29.6974269267953304, -95.3948740281415581 29.6972903308506346, -95.3946650813866910 29.6973397326847923, -95.3947654059391112 29.6974882560192022, -95.3949627316619768 29.6980355864961858, -95.3933200807862249 29.6984590863712796, -95.3932606497523494 29.6984464798710839, -95.3932983699113350 29.6983154306484352, -95.3933058014696655 29.6982165816983610, -95.3932946347785133 29.6981089778195759, -95.3931780601756287 29.6977068906794841, -95.3929928222970602 29.6977541771878180, -95.3930873169846478 29.6980676264932946, -95.3932743746374570 29.6981249406449663, -95.3929512584706316 29.6989526513922222, -95.3919850280655197 29.7014358632108646, -95.3918950918929056 29.7014169320765724, -95.3916928317890296 29.7019232352846423, -95.3915424614970959 29.7022988712928289, -95.3901530441668939 29.7058519502930061, -95.3899656322116698 29.7059156823562418, -95.3897628748670883 29.7059900058266777, -95.3896062677805787 29.7060738276384946, -95.3893941800512266 29.7061891695242046, -95.3892150365492455 29.7062641292949436, -95.3890502563035199 29.7063339729630940, -95.3888717930715586 29.7063896908080736, -95.3886925428988945 29.7064453871994978, -95.3885376849411983 29.7064797304524149, -95.3883284158984139 29.7065153575050189, -95.3881046767627794 29.7065368368267357, -95.3878809284696132 29.7065363048447537, -95.3876046356120924 29.7065288525102424, -95.3873060894974714 29.7064822806001452, -95.3869851943158409 29.7063993367575350, -95.3865967896568065 29.7062870572919202, -95.3861785624983156 29.7061492099008184, -95.3857375009733488 29.7059887337478798, -95.3854573290902152 29.7058683664514618, -95.3848703124799471 29.7056021479768511))", "n_i": 0, "ext_ring_cs": false, "n_p": 264, "area": 0.00129917360654, "centroid": [-95.403569179437341, 29.681772571690402]}
],
- "multipolygons": [
+ "multipolygons": [
{"wkt": "MULTIPOLYGON (((100 20, 180 20, 180 100, 100 100, 100 20)), ((20 100, 100 100, 100 180, 20 180, 20 100)), ((100 180, 180 180, 180 260, 100 260, 100 180)), ((180 100, 260 100, 260 180, 180 180, 180 100)))","valid": true, "num_geom":4, "n_p":20},
{"wkt": "MULTIPOLYGON (((60 300, 320 220, 260 60, 60 100, 60 300)), ((60 300, 320 220, 260 60, 60 100, 60 300)))", "valid": false},
{"wkt": "MULTIPOLYGON (((180 60, 240 160, 300 60, 180 60)), ((80 80, 180 60, 160 140, 240 160, 360 140, 300 60, 420 100, 320 280, 120 260, 80 80)))", "valid": true, "num_geom": 2, "n_p": 14}
diff --git a/django/contrib/gis/tests/geogapp/fixtures/initial_data.json b/django/contrib/gis/tests/geogapp/fixtures/initial_data.json
index 066441172d..2324bcdc16 100644
--- a/django/contrib/gis/tests/geogapp/fixtures/initial_data.json
+++ b/django/contrib/gis/tests/geogapp/fixtures/initial_data.json
@@ -1,65 +1,65 @@
-[
+[
{
- "pk": 1,
- "model": "geogapp.city",
+ "pk": 1,
+ "model": "geogapp.city",
"fields": {
- "name": "Houston",
+ "name": "Houston",
"point": "POINT (-95.363151 29.763374)"
}
- },
+ },
{
- "pk": 2,
- "model": "geogapp.city",
+ "pk": 2,
+ "model": "geogapp.city",
"fields": {
- "name": "Dallas",
+ "name": "Dallas",
"point": "POINT (-96.801611 32.782057)"
}
- },
+ },
{
- "pk": 3,
- "model": "geogapp.city",
+ "pk": 3,
+ "model": "geogapp.city",
"fields": {
"name": "Oklahoma City",
"point": "POINT (-97.521157 34.464642)"
}
- },
+ },
{
- "pk": 4,
- "model": "geogapp.city",
+ "pk": 4,
+ "model": "geogapp.city",
"fields": {
"name": "Wellington",
"point": "POINT (174.783117 -41.315268)"
}
- },
+ },
{
- "pk": 5,
- "model": "geogapp.city",
+ "pk": 5,
+ "model": "geogapp.city",
"fields": {
- "name": "Pueblo",
+ "name": "Pueblo",
"point": "POINT (-104.609252 38.255001)"
}
- },
+ },
{
- "pk": 6,
- "model": "geogapp.city",
+ "pk": 6,
+ "model": "geogapp.city",
"fields": {
- "name": "Lawrence",
+ "name": "Lawrence",
"point": "POINT (-95.235060 38.971823)"
}
- },
+ },
{
- "pk": 7,
- "model": "geogapp.city",
+ "pk": 7,
+ "model": "geogapp.city",
"fields": {
- "name": "Chicago",
+ "name": "Chicago",
"point": "POINT (-87.650175 41.850385)"
}
- },
+ },
{
- "pk": 8,
- "model": "geogapp.city",
+ "pk": 8,
+ "model": "geogapp.city",
"fields": {
- "name": "Victoria",
+ "name": "Victoria",
"point": "POINT (-123.305196 48.462611)"
}
},
diff --git a/django/contrib/gis/tests/layermap/models.py b/django/contrib/gis/tests/layermap/models.py
index b58dccdf37..fe8326dac5 100644
--- a/django/contrib/gis/tests/layermap/models.py
+++ b/django/contrib/gis/tests/layermap/models.py
@@ -40,7 +40,7 @@ class CityBase(models.Model):
class ICity1(CityBase):
dt = models.DateField()
-
+
class ICity2(ICity1):
dt_time = models.DateTimeField(auto_now=True)
diff --git a/django/contrib/redirects/admin.py b/django/contrib/redirects/admin.py
index a9b2a3228f..05737abf18 100644
--- a/django/contrib/redirects/admin.py
+++ b/django/contrib/redirects/admin.py
@@ -1,11 +1,11 @@
-
from django.contrib import admin
from django.contrib.redirects.models import Redirect
+
class RedirectAdmin(admin.ModelAdmin):
list_display = ('old_path', 'new_path')
list_filter = ('site',)
search_fields = ('old_path', 'new_path')
radio_fields = {'site': admin.VERTICAL}
-admin.site.register(Redirect, RedirectAdmin) \ No newline at end of file
+admin.site.register(Redirect, RedirectAdmin)
diff --git a/django/contrib/sitemaps/management/commands/ping_google.py b/django/contrib/sitemaps/management/commands/ping_google.py
index 7fa1690a14..3d5b95d6c7 100644
--- a/django/contrib/sitemaps/management/commands/ping_google.py
+++ b/django/contrib/sitemaps/management/commands/ping_google.py
@@ -11,4 +11,3 @@ class Command(BaseCommand):
else:
sitemap_url = None
ping_google(sitemap_url=sitemap_url)
-
diff --git a/django/contrib/sitemaps/models.py b/django/contrib/sitemaps/models.py
index 7ff128fa69..6e7633bfe0 100644
--- a/django/contrib/sitemaps/models.py
+++ b/django/contrib/sitemaps/models.py
@@ -1 +1 @@
-# This file intentionally left blank \ No newline at end of file
+# This file intentionally left blank
diff --git a/django/contrib/sites/admin.py b/django/contrib/sites/admin.py
index 2442c24292..36ac85fe8d 100644
--- a/django/contrib/sites/admin.py
+++ b/django/contrib/sites/admin.py
@@ -6,4 +6,4 @@ class SiteAdmin(admin.ModelAdmin):
list_display = ('domain', 'name')
search_fields = ('domain', 'name')
-admin.site.register(Site, SiteAdmin) \ No newline at end of file
+admin.site.register(Site, SiteAdmin)
diff --git a/django/contrib/sites/managers.py b/django/contrib/sites/managers.py
index becb35b404..0f4eabaaa7 100644
--- a/django/contrib/sites/managers.py
+++ b/django/contrib/sites/managers.py
@@ -8,15 +8,15 @@ class CurrentSiteManager(models.Manager):
super(CurrentSiteManager, self).__init__()
self.__field_name = field_name
self.__is_validated = False
-
+
def _validate_field_name(self):
field_names = self.model._meta.get_all_field_names()
-
+
# If a custom name is provided, make sure the field exists on the model
if self.__field_name is not None and self.__field_name not in field_names:
raise ValueError("%s couldn't find a field named %s in %s." % \
(self.__class__.__name__, self.__field_name, self.model._meta.object_name))
-
+
# Otherwise, see if there is a field called either 'site' or 'sites'
else:
for potential_name in ['site', 'sites']:
@@ -24,7 +24,7 @@ class CurrentSiteManager(models.Manager):
self.__field_name = potential_name
self.__is_validated = True
break
-
+
# Now do a type check on the field (FK or M2M only)
try:
field = self.model._meta.get_field(self.__field_name)
@@ -34,7 +34,7 @@ class CurrentSiteManager(models.Manager):
raise ValueError("%s couldn't find a field named %s in %s." % \
(self.__class__.__name__, self.__field_name, self.model._meta.object_name))
self.__is_validated = True
-
+
def get_queryset(self):
if not self.__is_validated:
self._validate_field_name()
diff --git a/django/core/mail/backends/filebased.py b/django/core/mail/backends/filebased.py
index 4a74c34f1f..0f6cc0ae20 100644
--- a/django/core/mail/backends/filebased.py
+++ b/django/core/mail/backends/filebased.py
@@ -57,4 +57,3 @@ class EmailBackend(ConsoleEmailBackend):
self.stream.close()
finally:
self.stream = None
-
diff --git a/django/core/management/commands/sqldropindexes.py b/django/core/management/commands/sqldropindexes.py
index fce77211fb..029378eaa6 100644
--- a/django/core/management/commands/sqldropindexes.py
+++ b/django/core/management/commands/sqldropindexes.py
@@ -20,4 +20,3 @@ class Command(AppCommand):
def handle_app(self, app, **options):
return '\n'.join(sql_destroy_indexes(app, self.style, connections[options.get('database')]))
-
diff --git a/django/core/serializers/json.py b/django/core/serializers/json.py
index 8ea0b0815e..fea5f3c087 100644
--- a/django/core/serializers/json.py
+++ b/django/core/serializers/json.py
@@ -109,4 +109,3 @@ class DjangoJSONEncoder(json.JSONEncoder):
# Older, deprecated class name (for backwards compatibility purposes).
DateTimeAwareJSONEncoder = DjangoJSONEncoder
-
diff --git a/django/dispatch/__init__.py b/django/dispatch/__init__.py
index 9aeb83c5e1..e6cd630d0c 100644
--- a/django/dispatch/__init__.py
+++ b/django/dispatch/__init__.py
@@ -6,4 +6,4 @@ See license.txt for original license.
Heavily modified for Django's purposes.
"""
-from django.dispatch.dispatcher import Signal, receiver \ No newline at end of file
+from django.dispatch.dispatcher import Signal, receiver
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index 6de15a2916..33d37c6835 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -179,4 +179,3 @@ def main(main_func, args=None, kwargs=None):
wrapped_main_func = check_errors(main_func)
reloader(wrapped_main_func, args, kwargs)
-
diff --git a/django/utils/regex_helper.py b/django/utils/regex_helper.py
index 449bb8da42..ade1448f27 100644
--- a/django/utils/regex_helper.py
+++ b/django/utils/regex_helper.py
@@ -339,4 +339,3 @@ def flatten_result(source):
for i in range(len(result)):
result[i] += piece
return result, result_args
-
diff --git a/django/utils/safestring.py b/django/utils/safestring.py
index 3774012d32..bec59385f7 100644
--- a/django/utils/safestring.py
+++ b/django/utils/safestring.py
@@ -135,4 +135,3 @@ def mark_for_escaping(s):
if isinstance(s, (six.text_type, Promise)):
return EscapeText(s)
return EscapeBytes(bytes(s))
-
diff --git a/django/utils/translation/trans_null.py b/django/utils/translation/trans_null.py
index 7ef07793a4..7746392097 100644
--- a/django/utils/translation/trans_null.py
+++ b/django/utils/translation/trans_null.py
@@ -60,4 +60,3 @@ def get_language_from_request(request, check_path=False):
def get_language_from_path(request, supported=None):
return None
-
diff --git a/django/views/decorators/http.py b/django/views/decorators/http.py
index 410979e1e4..a0da002dc9 100644
--- a/django/views/decorators/http.py
+++ b/django/views/decorators/http.py
@@ -163,4 +163,3 @@ def etag(etag_func):
def last_modified(last_modified_func):
return condition(last_modified_func=last_modified_func)
-
diff --git a/docs/README b/docs/README
index 5001eef57e..3a48a5f254 100644
--- a/docs/README
+++ b/docs/README
@@ -1,7 +1,7 @@
The documentation in this tree is in plain text files and can be viewed using
any text file viewer.
-It uses ReST (reStructuredText) [1], and the Sphinx documentation system [2].
+It uses ReST (reStructuredText) [1], and the Sphinx documentation system [2].
This allows it to be built into other forms for easier viewing and browsing.
To create an HTML version of the docs:
diff --git a/docs/_ext/literals_to_xrefs.py b/docs/_ext/literals_to_xrefs.py
index 6feeca992e..d1131fc375 100644
--- a/docs/_ext/literals_to_xrefs.py
+++ b/docs/_ext/literals_to_xrefs.py
@@ -26,7 +26,7 @@ ROLES = (
"term",
"tfilter",
"ttag",
-
+
# special
"skip"
)
@@ -40,39 +40,39 @@ ALWAYS_SKIP = [
def fixliterals(fname):
with open(fname) as fp:
data = fp.read()
-
+
last = 0
new = []
storage = shelve.open("/tmp/literals_to_xref.shelve")
lastvalues = storage.get("lastvalues", {})
-
+
for m in refre.finditer(data):
-
+
new.append(data[last:m.start()])
last = m.end()
-
+
line_start = data.rfind("\n", 0, m.start())
line_end = data.find("\n", m.end())
prev_start = data.rfind("\n", 0, line_start)
next_end = data.find("\n", line_end + 1)
-
+
# Skip always-skip stuff
if m.group(1) in ALWAYS_SKIP:
new.append(m.group(0))
continue
-
+
# skip when the next line is a title
next_line = data[m.end():next_end].strip()
if next_line[0] in "!-/:-@[-`{-~" and all(c == next_line[0] for c in next_line):
new.append(m.group(0))
continue
-
+
sys.stdout.write("\n"+"-"*80+"\n")
sys.stdout.write(data[prev_start+1:m.start()])
sys.stdout.write(colorize(m.group(0), fg="red"))
sys.stdout.write(data[m.end():next_end])
sys.stdout.write("\n\n")
-
+
replace_type = None
while replace_type is None:
replace_type = raw_input(
@@ -80,34 +80,34 @@ def fixliterals(fname):
).strip().lower()
if replace_type and replace_type not in ROLES:
replace_type = None
-
+
if replace_type == "":
new.append(m.group(0))
continue
-
+
if replace_type == "skip":
new.append(m.group(0))
ALWAYS_SKIP.append(m.group(1))
continue
-
+
default = lastvalues.get(m.group(1), m.group(1))
if default.endswith("()") and replace_type in ("class", "func", "meth"):
- default = default[:-2]
+ default = default[:-2]
replace_value = raw_input(
colorize("Text <target> [", fg="yellow") + default + colorize("]: ", fg="yellow")
).strip()
- if not replace_value:
+ if not replace_value:
replace_value = default
new.append(":%s:`%s`" % (replace_type, replace_value))
lastvalues[m.group(1)] = replace_value
-
+
new.append(data[last:])
with open(fname, "w") as fp:
fp.write("".join(new))
-
+
storage["lastvalues"] = lastvalues
storage.close()
-
+
#
# The following is taken from django.utils.termcolors and is copied here to
# avoid the dependency.
diff --git a/docs/_theme/djangodocs/layout.html b/docs/_theme/djangodocs/layout.html
index ef91dd77a9..fa0b497450 100644
--- a/docs/_theme/djangodocs/layout.html
+++ b/docs/_theme/djangodocs/layout.html
@@ -2,13 +2,13 @@
{%- macro secondnav() %}
{%- if prev %}
- &laquo; <a href="{{ prev.link|e }}" title="{{ prev.title|e }}">previous</a>
+ &laquo; <a href="{{ prev.link|e }}" title="{{ prev.title|e }}">previous</a>
{{ reldelim2 }}
{%- endif %}
{%- if parents %}
- <a href="{{ parents.0.link|e }}" title="{{ parents.0.title|e }}" accesskey="U">up</a>
+ <a href="{{ parents.0.link|e }}" title="{{ parents.0.title|e }}" accesskey="U">up</a>
{%- else %}
- <a title="{{ docstitle }}" href="{{ pathto('index') }}" accesskey="U">up</a>
+ <a title="{{ docstitle }}" href="{{ pathto('index') }}" accesskey="U">up</a>
{%- endif %}
{%- if next %}
{{ reldelim2 }}
@@ -65,13 +65,13 @@
</div>
<div class="nav">{{ secondnav() }}</div>
</div>
-
+
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-g" id="{{ pagename|replace('/', '-') }}">
{% block body %}{% endblock %}
- </div>
+ </div>
</div>
</div>
{% block sidebarwrapper %}
@@ -82,11 +82,11 @@
<h3>Last update:</h3>
<p class="topless">{{ last_updated }}</p>
{%- endif %}
- </div>
+ </div>
{% endif %}
{% endblock %}
</div>
-
+
<div id="ft">
<div class="nav">{{ secondnav() }}</div>
</div>
@@ -113,7 +113,7 @@
<ul><li>{{ title }}</li></ul>
{% for p in parents %}</li></ul>{% endfor %}
</li>
- </ul>
+ </ul>
{% endblock %}
{# Empty some default blocks out #}
diff --git a/docs/faq/index.txt b/docs/faq/index.txt
index b7281946ee..ffa5a7d164 100644
--- a/docs/faq/index.txt
+++ b/docs/faq/index.txt
@@ -4,7 +4,7 @@ Django FAQ
.. toctree::
:maxdepth: 2
-
+
general
install
usage
diff --git a/docs/internals/contributing/triaging-tickets.txt b/docs/internals/contributing/triaging-tickets.txt
index aadb02f216..ea0e6d9030 100644
--- a/docs/internals/contributing/triaging-tickets.txt
+++ b/docs/internals/contributing/triaging-tickets.txt
@@ -175,7 +175,7 @@ This means the ticket has an associated
:doc:`patch<writing-code/submitting-patches>`. These will be reviewed
to see if the patch is "good".
-The following three fields (Needs documentation, Needs tests,
+The following three fields (Needs documentation, Needs tests,
Patch needs improvement) apply only if a patch has been supplied.
Needs documentation
diff --git a/docs/misc/design-philosophies.txt b/docs/misc/design-philosophies.txt
index 0101da9586..8664d4e7ed 100644
--- a/docs/misc/design-philosophies.txt
+++ b/docs/misc/design-philosophies.txt
@@ -67,7 +67,7 @@ as possible.
The `discussion of DRY on the Portland Pattern Repository`__
__ http://c2.com/cgi/wiki?DontRepeatYourself
-
+
.. _explicit-is-better-than-implicit:
Explicit is better than implicit
diff --git a/docs/misc/index.txt b/docs/misc/index.txt
index b42baeb9fd..fb5c026a4d 100644
--- a/docs/misc/index.txt
+++ b/docs/misc/index.txt
@@ -6,7 +6,7 @@ your kitchen with the scissors, batteries, duct tape, and other junk.
.. toctree::
:maxdepth: 2
-
+
api-stability
design-philosophies
distributions
diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt
index 7fe04f6dec..da4c96792e 100644
--- a/docs/ref/contrib/gis/forms-api.txt
+++ b/docs/ref/contrib/gis/forms-api.txt
@@ -9,7 +9,7 @@ GeoDjango Forms API
.. versionadded:: 1.6
-GeoDjango provides some specialized form fields and widgets in order to visually
+GeoDjango provides some specialized form fields and widgets in order to visually
display and edit geolocalized data on a map. By default, they use
`OpenLayers`_-powered maps, with a base WMS layer provided by `Metacarta`_.
diff --git a/docs/ref/models/relations.txt b/docs/ref/models/relations.txt
index 17abab86ee..2fca954676 100644
--- a/docs/ref/models/relations.txt
+++ b/docs/ref/models/relations.txt
@@ -139,7 +139,7 @@ A related object set can be replaced in bulk with one operation by assigning a
new iterable of objects to it::
>>> new_list = [obj1, obj2, obj3]
- >>> e.related_set = new_list
+ >>> e.related_set = new_list
If the foreign key relationship has ``null=True``, then the related manager
will first call ``clear()`` to disassociate any existing objects in the related
diff --git a/docs/releases/1.0-beta.txt b/docs/releases/1.0-beta.txt
index 34e6fb5452..d2377f16ab 100644
--- a/docs/releases/1.0-beta.txt
+++ b/docs/releases/1.0-beta.txt
@@ -56,7 +56,7 @@ Split ``CacheMiddleware``
into and reading from the cache) separately, offering additional
flexibility for situations where combining these functions into a
single middleware posed problems. Full details, including updated
- notes on appropriate use, are in
+ notes on appropriate use, are in
:doc:`the caching documentation </topics/cache>`.
Removal of deprecated features
diff --git a/docs/releases/1.1-rc-1.txt b/docs/releases/1.1-rc-1.txt
index 53cd6cd34c..56b7d89be9 100644
--- a/docs/releases/1.1-rc-1.txt
+++ b/docs/releases/1.1-rc-1.txt
@@ -100,7 +100,7 @@ interested in helping out with Django's development, feel free to join the
discussions there.
Django's online documentation also includes pointers on how to contribute to
-Django:
+Django:
* :doc:`How to contribute to Django </internals/contributing/index>`
diff --git a/docs/releases/1.2-rc-1.txt b/docs/releases/1.2-rc-1.txt
index 55f6ef4246..78046d8b57 100644
--- a/docs/releases/1.2-rc-1.txt
+++ b/docs/releases/1.2-rc-1.txt
@@ -92,7 +92,7 @@ interested in helping out with Django's development, feel free to join the
discussions there.
Django's online documentation also includes pointers on how to contribute to
-Django:
+Django:
* :doc:`How to contribute to Django </internals/contributing/index>`
diff --git a/docs/releases/1.2.7.txt b/docs/releases/1.2.7.txt
index c0cf6980f2..edb8f0329b 100644
--- a/docs/releases/1.2.7.txt
+++ b/docs/releases/1.2.7.txt
@@ -7,7 +7,7 @@ Django 1.2.7 release notes
Welcome to Django 1.2.7!
This is the seventh bugfix/security release in the Django 1.2 series. It
-replaces Django 1.2.6 due to problems with the 1.2.6 release tarball.
+replaces Django 1.2.6 due to problems with the 1.2.6 release tarball.
Django 1.2.7 is a recommended upgrade for all users of any Django release in
the 1.2.X series.
diff --git a/docs/topics/http/index.txt b/docs/topics/http/index.txt
index 0bcb3a2d48..3c53b2ea4d 100644
--- a/docs/topics/http/index.txt
+++ b/docs/topics/http/index.txt
@@ -5,7 +5,7 @@ Information on handling HTTP requests in Django:
.. toctree::
:maxdepth: 1
-
+
urls
views
decorators
diff --git a/extras/django_bash_completion b/extras/django_bash_completion
index 8f85211705..3e02d8ef3a 100755
--- a/extras/django_bash_completion
+++ b/extras/django_bash_completion
@@ -35,7 +35,7 @@ _django_completion()
{
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
- DJANGO_AUTO_COMPLETE=1 $1 ) )
+ DJANGO_AUTO_COMPLETE=1 $1 ) )
}
complete -F _django_completion -o default django-admin.py manage.py django-admin
@@ -69,4 +69,3 @@ else
fi
complete -F _python_django_completion -o default $pythons
-
diff --git a/scripts/manage_translations.py b/scripts/manage_translations.py
index d1390c0181..5460eef25e 100644
--- a/scripts/manage_translations.py
+++ b/scripts/manage_translations.py
@@ -101,7 +101,7 @@ def lang_stats(resources=None, languages=None):
for name, dir_ in locale_dirs:
if resources and not name in resources:
continue
- print("\nShowing translations stats for '%s':" % name)
+ print("\nShowing translations stats for '%s':" % name)
langs = sorted([d for d in os.listdir(dir_) if not d.startswith('_')])
for lang in langs:
if languages and not lang in languages:
diff --git a/tests/admin_custom_urls/fixtures/actions.json b/tests/admin_custom_urls/fixtures/actions.json
index 7c6341d71d..7eda3a3ab0 100644
--- a/tests/admin_custom_urls/fixtures/actions.json
+++ b/tests/admin_custom_urls/fixtures/actions.json
@@ -1,42 +1,42 @@
[
{
- "pk": "delete",
- "model": "admin_custom_urls.action",
+ "pk": "delete",
+ "model": "admin_custom_urls.action",
"fields": {
"description": "Remove things."
}
- },
+ },
{
- "pk": "rename",
- "model": "admin_custom_urls.action",
+ "pk": "rename",
+ "model": "admin_custom_urls.action",
"fields": {
"description": "Gives things other names."
}
- },
+ },
{
- "pk": "add",
- "model": "admin_custom_urls.action",
+ "pk": "add",
+ "model": "admin_custom_urls.action",
"fields": {
"description": "Add things."
}
- },
+ },
{
- "pk": "path/to/file/",
- "model": "admin_custom_urls.action",
+ "pk": "path/to/file/",
+ "model": "admin_custom_urls.action",
"fields": {
"description": "An action with '/' in its name."
}
- },
+ },
{
- "pk": "path/to/html/document.html",
- "model": "admin_custom_urls.action",
+ "pk": "path/to/html/document.html",
+ "model": "admin_custom_urls.action",
"fields": {
"description": "An action with a name similar to a HTML doc path."
}
- },
+ },
{
- "pk": "javascript:alert('Hello world');\">Click here</a>",
- "model": "admin_custom_urls.action",
+ "pk": "javascript:alert('Hello world');\">Click here</a>",
+ "model": "admin_custom_urls.action",
"fields": {
"description": "An action with a name suspected of being a XSS attempt"
}
diff --git a/tests/admin_custom_urls/urls.py b/tests/admin_custom_urls/urls.py
index 478390737d..5fe9ca89fb 100644
--- a/tests/admin_custom_urls/urls.py
+++ b/tests/admin_custom_urls/urls.py
@@ -5,4 +5,3 @@ from django.contrib import admin
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
)
-
diff --git a/tests/admin_scripts/custom_templates/app_template/api.py b/tests/admin_scripts/custom_templates/app_template/api.py
index 439d935f73..ad7ec51b0b 100644
--- a/tests/admin_scripts/custom_templates/app_template/api.py
+++ b/tests/admin_scripts/custom_templates/app_template/api.py
@@ -1 +1 @@
-# your API code \ No newline at end of file
+# your API code
diff --git a/tests/admin_scripts/custom_templates/app_template/models.py b/tests/admin_scripts/custom_templates/app_template/models.py
index 92be216cfc..fcd0b215d8 100644
--- a/tests/admin_scripts/custom_templates/app_template/models.py
+++ b/tests/admin_scripts/custom_templates/app_template/models.py
@@ -1 +1 @@
-# whatever \ No newline at end of file
+# whatever
diff --git a/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py b/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py
index 032f0bcd72..43c1e1436a 100644
--- a/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py
+++ b/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py
@@ -1 +1 @@
-# some file for {{ project_name }} test project \ No newline at end of file
+# some file for {{ project_name }} test project
diff --git a/tests/admin_scripts/management/commands/app_command.py b/tests/admin_scripts/management/commands/app_command.py
index d26df12642..5cbddb6e96 100644
--- a/tests/admin_scripts/management/commands/app_command.py
+++ b/tests/admin_scripts/management/commands/app_command.py
@@ -8,4 +8,3 @@ class Command(AppCommand):
def handle_app(self, app, **options):
print('EXECUTE:AppCommand app=%s, options=%s' % (app, sorted(options.items())))
-
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 9f7c8d7b54..db5f6e263e 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1633,7 +1633,7 @@ class StartProject(LiveServerTestCase, AdminScriptTestCase):
for f in ('Procfile', 'additional_file.py', 'requirements.txt'):
self.assertTrue(os.path.exists(os.path.join(base_path, f)))
with open(os.path.join(base_path, f)) as fh:
- self.assertEqual(fh.read(),
+ self.assertEqual(fh.read().strip(),
'# some file for customtestproject test project')
def test_custom_project_template_context_variables(self):
diff --git a/tests/admin_widgets/fixtures/admin-widgets-users.xml b/tests/admin_widgets/fixtures/admin-widgets-users.xml
index b851562a1c..f677215c6d 100644
--- a/tests/admin_widgets/fixtures/admin-widgets-users.xml
+++ b/tests/admin_widgets/fixtures/admin-widgets-users.xml
@@ -28,7 +28,7 @@
<field to="auth.group" name="groups" rel="ManyToManyRel"></field>
<field to="auth.permission" name="user_permissions" rel="ManyToManyRel"></field>
</object>
-
+
<object pk="1" model="admin_widgets.car">
<field to="auth.user" name="owner" rel="ManyToOneRel">100</field>
<field type="CharField" name="make">Volkswagon</field>
diff --git a/tests/admin_widgets/widgetadmin.py b/tests/admin_widgets/widgetadmin.py
index 5eea29654b..fa46530037 100644
--- a/tests/admin_widgets/widgetadmin.py
+++ b/tests/admin_widgets/widgetadmin.py
@@ -6,10 +6,12 @@ from . import models
class WidgetAdmin(admin.AdminSite):
pass
+
class CarAdmin(admin.ModelAdmin):
list_display = ['make', 'model', 'owner']
list_editable = ['owner']
+
class CarTireAdmin(admin.ModelAdmin):
def formfield_for_foreignkey(self, db_field, request, **kwargs):
if db_field.name == "car":
@@ -17,6 +19,7 @@ class CarTireAdmin(admin.ModelAdmin):
return db_field.formfield(**kwargs)
return super(CarTireAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs)
+
class EventAdmin(admin.ModelAdmin):
raw_id_fields = ['main_band', 'supporting_bands']
@@ -44,4 +47,4 @@ site.register(models.Advisor)
site.register(models.School, SchoolAdmin)
-site.register(models.Profile) \ No newline at end of file
+site.register(models.Profile)
diff --git a/tests/aggregation/models.py b/tests/aggregation/models.py
index b4f797ee03..9710afaf11 100644
--- a/tests/aggregation/models.py
+++ b/tests/aggregation/models.py
@@ -44,4 +44,3 @@ class Store(models.Model):
def __str__(self):
return self.name
-
diff --git a/tests/bash_completion/models.py b/tests/bash_completion/models.py
index 8b13789179..e69de29bb2 100644
--- a/tests/bash_completion/models.py
+++ b/tests/bash_completion/models.py
@@ -1 +0,0 @@
-
diff --git a/tests/cache/liberal_backend.py b/tests/cache/liberal_backend.py
index b72013c6a8..3e3ce3beeb 100644
--- a/tests/cache/liberal_backend.py
+++ b/tests/cache/liberal_backend.py
@@ -7,4 +7,3 @@ class LiberalKeyValidationMixin(object):
class CacheClass(LiberalKeyValidationMixin, LocMemCache):
pass
-
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index 462c1b236d..d46c61df67 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -1917,4 +1917,3 @@ class TestMakeTemplateFragmentKey(TestCase):
key = make_template_fragment_key('spam', ['abc:def%'])
self.assertEqual(key,
'template.cache.spam.f27688177baec990cdf3fbd9d9c3f469')
-
diff --git a/tests/choices/tests.py b/tests/choices/tests.py
index 2d612626c2..329c936c7f 100644
--- a/tests/choices/tests.py
+++ b/tests/choices/tests.py
@@ -20,4 +20,3 @@ class ChoicesTests(TestCase):
a.gender = 'U'
self.assertEqual(a.get_gender_display(), 'U')
-
diff --git a/tests/comment_tests/tests/__init__.py b/tests/comment_tests/tests/__init__.py
index df6d60010f..2e247079f8 100644
--- a/tests/comment_tests/tests/__init__.py
+++ b/tests/comment_tests/tests/__init__.py
@@ -82,4 +82,3 @@ class CommentTestCase(TestCase):
d = self.getData()
d.update(f.initial)
return d
-
diff --git a/tests/conditional_processing/views.py b/tests/conditional_processing/views.py
index d4dc4b8cf6..2960e0533d 100644
--- a/tests/conditional_processing/views.py
+++ b/tests/conditional_processing/views.py
@@ -23,4 +23,3 @@ etag_view1 = condition(etag_func=lambda r: ETAG)(etag_view1)
def etag_view2(request):
return HttpResponse(FULL_RESPONSE)
etag_view2 = etag(lambda r: ETAG)(etag_view2)
-
diff --git a/tests/context_processors/tests.py b/tests/context_processors/tests.py
index c57c592de6..cfac38bfdc 100644
--- a/tests/context_processors/tests.py
+++ b/tests/context_processors/tests.py
@@ -34,4 +34,3 @@ class RequestContextProcessorTests(TestCase):
self.assertContains(response, url)
response = self.client.post(url, {'path': '/blah/'})
self.assertContains(response, url)
-
diff --git a/tests/createsuperuser/tests.py b/tests/createsuperuser/tests.py
index 7303b1f2e7..f64e4d9915 100644
--- a/tests/createsuperuser/tests.py
+++ b/tests/createsuperuser/tests.py
@@ -53,4 +53,3 @@ class MultiDBCreatesuperuserTestCase(TestCase):
self.assertEqual(u.email, 'joe@somewhere.org')
new_io.close()
-
diff --git a/tests/custom_columns/models.py b/tests/custom_columns/models.py
index 16f0563d6b..16a7838a9f 100644
--- a/tests/custom_columns/models.py
+++ b/tests/custom_columns/models.py
@@ -43,4 +43,3 @@ class Article(models.Model):
class Meta:
ordering = ('headline',)
-
diff --git a/tests/custom_columns_regress/models.py b/tests/custom_columns_regress/models.py
index 169b2246c3..96fe71cef8 100644
--- a/tests/custom_columns_regress/models.py
+++ b/tests/custom_columns_regress/models.py
@@ -36,6 +36,3 @@ class Author(models.Model):
class Meta:
db_table = 'my author table'
ordering = ('last_name','first_name')
-
-
-
diff --git a/tests/custom_managers_regress/tests.py b/tests/custom_managers_regress/tests.py
index 8462e526c9..1737c52926 100644
--- a/tests/custom_managers_regress/tests.py
+++ b/tests/custom_managers_regress/tests.py
@@ -47,4 +47,3 @@ class CustomManagersRegressTestCase(TestCase):
obj = RelatedModel.objects.get(name="xyzzy")
obj.delete()
self.assertEqual(len(OneToOneRestrictedModel.plain_manager.all()), 0)
-
diff --git a/tests/custom_pk/models.py b/tests/custom_pk/models.py
index 8d5065aed8..9833b88706 100644
--- a/tests/custom_pk/models.py
+++ b/tests/custom_pk/models.py
@@ -45,4 +45,3 @@ class Bar(models.Model):
class Foo(models.Model):
bar = models.ForeignKey(Bar)
-
diff --git a/tests/decorators/models.py b/tests/decorators/models.py
index e5a795067b..22e41b9828 100644
--- a/tests/decorators/models.py
+++ b/tests/decorators/models.py
@@ -1,2 +1 @@
# A models.py so that tests run.
-
diff --git a/tests/defaultfilters/tests.py b/tests/defaultfilters/tests.py
index dcd6bb7364..adae44dad3 100644
--- a/tests/defaultfilters/tests.py
+++ b/tests/defaultfilters/tests.py
@@ -341,7 +341,7 @@ class DefaultFiltersTests(TestCase):
self.assertEqual(urlize('before \'hi@example.com afterwards'),
'before \'<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
- # Check urlize copes with commas following URLs in quotes - see #20364
+ # Check urlize copes with commas following URLs in quotes - see #20364
self.assertEqual(urlize('Email us at "hi@example.com", or phone us at +xx.yy'),
'Email us at "<a href="mailto:hi@example.com">hi@example.com</a>", or phone us at +xx.yy')
diff --git a/tests/distinct_on_fields/tests.py b/tests/distinct_on_fields/tests.py
index ec6c2d0463..392178d894 100644
--- a/tests/distinct_on_fields/tests.py
+++ b/tests/distinct_on_fields/tests.py
@@ -114,4 +114,3 @@ class DistinctOnTests(TestCase):
# distinct + aggregate not allowed
with self.assertRaises(NotImplementedError):
Celebrity.objects.distinct('id').aggregate(Max('id'))
-
diff --git a/tests/expressions_regress/models.py b/tests/expressions_regress/models.py
index 711329031d..4679dcd567 100644
--- a/tests/expressions_regress/models.py
+++ b/tests/expressions_regress/models.py
@@ -26,4 +26,3 @@ class Experiment(models.Model):
def duration(self):
return self.end - self.start
-
diff --git a/tests/extra_regress/models.py b/tests/extra_regress/models.py
index 11996438b4..5b4250ca8d 100644
--- a/tests/extra_regress/models.py
+++ b/tests/extra_regress/models.py
@@ -42,4 +42,3 @@ class TestObject(models.Model):
def __str__(self):
return 'TestObject: %s,%s,%s' % (self.first,self.second,self.third)
-
diff --git a/tests/fixtures/fixtures/fixture2.json b/tests/fixtures/fixtures/fixture2.json
index 01b40d7535..a697448327 100644
--- a/tests/fixtures/fixtures/fixture2.json
+++ b/tests/fixtures/fixtures/fixture2.json
@@ -1,17 +1,17 @@
[
{
- "pk": "3",
- "model": "fixtures.article",
+ "pk": "3",
+ "model": "fixtures.article",
"fields": {
- "headline": "Copyright is fine the way it is",
+ "headline": "Copyright is fine the way it is",
"pub_date": "2006-06-16 14:00:00"
}
- },
+ },
{
- "pk": "4",
- "model": "fixtures.article",
+ "pk": "4",
+ "model": "fixtures.article",
"fields": {
- "headline": "Django conquers world!",
+ "headline": "Django conquers world!",
"pub_date": "2006-06-16 15:00:00"
}
}
diff --git a/tests/fixtures_model_package/fixtures/fixture1.json b/tests/fixtures_model_package/fixtures/fixture1.json
index 7684d84609..60ad807aac 100644
--- a/tests/fixtures_model_package/fixtures/fixture1.json
+++ b/tests/fixtures_model_package/fixtures/fixture1.json
@@ -1,17 +1,17 @@
[
{
- "pk": "2",
- "model": "fixtures_model_package.article",
+ "pk": "2",
+ "model": "fixtures_model_package.article",
"fields": {
- "headline": "Poker has no place on ESPN",
+ "headline": "Poker has no place on ESPN",
"pub_date": "2006-06-16 12:00:00"
}
- },
+ },
{
- "pk": "3",
- "model": "fixtures_model_package.article",
+ "pk": "3",
+ "model": "fixtures_model_package.article",
"fields": {
- "headline": "Time to reform copyright",
+ "headline": "Time to reform copyright",
"pub_date": "2006-06-16 13:00:00"
}
}
diff --git a/tests/fixtures_model_package/fixtures/fixture2.json b/tests/fixtures_model_package/fixtures/fixture2.json
index 4997627385..a09bc34d62 100644
--- a/tests/fixtures_model_package/fixtures/fixture2.json
+++ b/tests/fixtures_model_package/fixtures/fixture2.json
@@ -1,17 +1,17 @@
[
{
- "pk": "3",
- "model": "fixtures_model_package.article",
+ "pk": "3",
+ "model": "fixtures_model_package.article",
"fields": {
- "headline": "Copyright is fine the way it is",
+ "headline": "Copyright is fine the way it is",
"pub_date": "2006-06-16 14:00:00"
}
- },
+ },
{
- "pk": "4",
- "model": "fixtures_model_package.article",
+ "pk": "4",
+ "model": "fixtures_model_package.article",
"fields": {
- "headline": "Django conquers world!",
+ "headline": "Django conquers world!",
"pub_date": "2006-06-16 15:00:00"
}
}
diff --git a/tests/fixtures_regress/fixtures/absolute.json b/tests/fixtures_regress/fixtures/absolute.json
index 37ed3f6886..bdf889d333 100644
--- a/tests/fixtures_regress/fixtures/absolute.json
+++ b/tests/fixtures_regress/fixtures/absolute.json
@@ -1,7 +1,7 @@
[
{
- "pk": "1",
- "model": "fixtures_regress.absolute",
+ "pk": "1",
+ "model": "fixtures_regress.absolute",
"fields": {
"name": "Load Absolute Path Test"
}
diff --git a/tests/fixtures_regress/fixtures/big-fixture.json b/tests/fixtures_regress/fixtures/big-fixture.json
index e655fbbf3f..41bd33c6b5 100644
--- a/tests/fixtures_regress/fixtures/big-fixture.json
+++ b/tests/fixtures_regress/fixtures/big-fixture.json
@@ -4,16 +4,16 @@
"model": "fixtures_regress.channel",
"fields": {
"name": "Business"
- }
+ }
},
-
+
{
"pk": 1,
"model": "fixtures_regress.article",
"fields": {
"title": "Article Title 1",
"channels": [6]
- }
+ }
},
{
"pk": 2,
@@ -21,7 +21,7 @@
"fields": {
"title": "Article Title 2",
"channels": [6]
- }
+ }
},
{
"pk": 3,
@@ -29,7 +29,7 @@
"fields": {
"title": "Article Title 3",
"channels": [6]
- }
+ }
},
{
"pk": 4,
@@ -37,7 +37,7 @@
"fields": {
"title": "Article Title 4",
"channels": [6]
- }
+ }
},
{
@@ -46,7 +46,7 @@
"fields": {
"title": "Article Title 5",
"channels": [6]
- }
+ }
},
{
"pk": 6,
@@ -54,7 +54,7 @@
"fields": {
"title": "Article Title 6",
"channels": [6]
- }
+ }
},
{
"pk": 7,
@@ -62,7 +62,7 @@
"fields": {
"title": "Article Title 7",
"channels": [6]
- }
+ }
},
{
"pk": 8,
@@ -70,7 +70,7 @@
"fields": {
"title": "Article Title 8",
"channels": [6]
- }
+ }
},
{
"pk": 9,
@@ -78,6 +78,6 @@
"fields": {
"title": "Yet Another Article",
"channels": [6]
- }
+ }
}
] \ No newline at end of file
diff --git a/tests/fixtures_regress/fixtures/sequence.json b/tests/fixtures_regress/fixtures/sequence.json
index 60bfcdd547..c45ea9420c 100644
--- a/tests/fixtures_regress/fixtures/sequence.json
+++ b/tests/fixtures_regress/fixtures/sequence.json
@@ -1,9 +1,9 @@
[
{
- "pk": "1",
- "model": "fixtures_regress.animal",
+ "pk": "1",
+ "model": "fixtures_regress.animal",
"fields": {
- "name": "Lion",
+ "name": "Lion",
"latin_name": "Panthera leo",
"count": 3,
"weight": 1.2
diff --git a/tests/generic_inline_admin/models.py b/tests/generic_inline_admin/models.py
index dedc351075..cc7de62454 100644
--- a/tests/generic_inline_admin/models.py
+++ b/tests/generic_inline_admin/models.py
@@ -72,5 +72,3 @@ class Contact(models.Model):
#
class EpisodePermanent(Episode):
pass
-
-
diff --git a/tests/generic_views/test_edit.py b/tests/generic_views/test_edit.py
index 9b1ba0f865..d38f4e0f45 100644
--- a/tests/generic_views/test_edit.py
+++ b/tests/generic_views/test_edit.py
@@ -375,4 +375,3 @@ class DeleteViewTests(TestCase):
self.fail('Should raise exception -- No redirect URL provided, and no get_absolute_url provided')
except ImproperlyConfigured:
pass
-
diff --git a/tests/http_utils/tests.py b/tests/http_utils/tests.py
index 9f99c94da7..6e26134c68 100644
--- a/tests/http_utils/tests.py
+++ b/tests/http_utils/tests.py
@@ -47,7 +47,7 @@ class HttpUtilTests(TestCase):
conditional_content_removal(req, res)
self.assertEqual(b''.join(res), b'')
- # Issue #20472
+ # Issue #20472
abc = gzip_compress(b'abc')
res = HttpResponse(abc, status=304)
res['Content-Encoding'] = 'gzip'
diff --git a/tests/i18n/resolution/models.py b/tests/i18n/resolution/models.py
index 4287ca8617..792d600548 100644
--- a/tests/i18n/resolution/models.py
+++ b/tests/i18n/resolution/models.py
@@ -1 +1 @@
-# \ No newline at end of file
+#
diff --git a/tests/initial_sql_regress/models.py b/tests/initial_sql_regress/models.py
index 76de6d3bcb..f23ceefce3 100644
--- a/tests/initial_sql_regress/models.py
+++ b/tests/initial_sql_regress/models.py
@@ -7,4 +7,3 @@ from django.db import models
class Simple(models.Model):
name = models.CharField(max_length = 50)
-
diff --git a/tests/known_related_objects/models.py b/tests/known_related_objects/models.py
index e256cc38f2..cfee4650d9 100644
--- a/tests/known_related_objects/models.py
+++ b/tests/known_related_objects/models.py
@@ -20,4 +20,3 @@ class Pool(models.Model):
class PoolStyle(models.Model):
name = models.CharField(max_length=30)
pool = models.OneToOneField(Pool)
-
diff --git a/tests/m2m_and_m2o/models.py b/tests/m2m_and_m2o/models.py
index 99c7b01017..c303743f04 100644
--- a/tests/m2m_and_m2o/models.py
+++ b/tests/m2m_and_m2o/models.py
@@ -27,4 +27,3 @@ class Issue(models.Model):
class UnicodeReferenceModel(models.Model):
others = models.ManyToManyField("UnicodeReferenceModel")
-
diff --git a/tests/m2m_intermediary/models.py b/tests/m2m_intermediary/models.py
index e9ae422afb..770681f91c 100644
--- a/tests/m2m_intermediary/models.py
+++ b/tests/m2m_intermediary/models.py
@@ -39,4 +39,3 @@ class Writer(models.Model):
def __str__(self):
return '%s (%s)' % (self.reporter, self.position)
-
diff --git a/tests/m2m_regress/tests.py b/tests/m2m_regress/tests.py
index 610f01694a..eaba53a5b4 100644
--- a/tests/m2m_regress/tests.py
+++ b/tests/m2m_regress/tests.py
@@ -108,4 +108,3 @@ class M2MRegressionTests(TestCase):
worksheet.lines = hi
self.assertEqual(1, worksheet.lines.count())
self.assertEqual(1, hi.count())
-
diff --git a/tests/mail/models.py b/tests/mail/models.py
deleted file mode 100644
index 7ff128fa69..0000000000
--- a/tests/mail/models.py
+++ /dev/null
@@ -1 +0,0 @@
-# This file intentionally left blank \ No newline at end of file
diff --git a/tests/migrations/test_migrations/0001_initial.py b/tests/migrations/test_migrations/0001_initial.py
index f20bac8aec..344bebdfe3 100644
--- a/tests/migrations/test_migrations/0001_initial.py
+++ b/tests/migrations/test_migrations/0001_initial.py
@@ -2,7 +2,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
-
+
operations = [
migrations.CreateModel(
@@ -23,5 +23,5 @@ class Migration(migrations.Migration):
("fluffy", models.BooleanField(default=True)),
],
)
-
+
]
diff --git a/tests/migrations/test_migrations_2/0001_initial.py b/tests/migrations/test_migrations_2/0001_initial.py
index 94c4bc0746..6172f011e8 100644
--- a/tests/migrations/test_migrations_2/0001_initial.py
+++ b/tests/migrations/test_migrations_2/0001_initial.py
@@ -4,7 +4,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("migrations", "0002_second")]
-
+
operations = [
migrations.CreateModel(
@@ -17,5 +17,5 @@ class Migration(migrations.Migration):
("silly_field", models.BooleanField(default=False)),
],
),
-
+
]
diff --git a/tests/migrations/test_state.py b/tests/migrations/test_state.py
index 210897dc66..7c6e7a26b5 100644
--- a/tests/migrations/test_state.py
+++ b/tests/migrations/test_state.py
@@ -45,7 +45,7 @@ class StateTests(TestCase):
author_state = project_state.models['migrations', 'author']
author_proxy_state = project_state.models['migrations', 'authorproxy']
book_state = project_state.models['migrations', 'book']
-
+
self.assertEqual(author_state.app_label, "migrations")
self.assertEqual(author_state.name, "Author")
self.assertEqual([x for x, y in author_state.fields], ["id", "name", "bio", "age"])
@@ -54,7 +54,7 @@ class StateTests(TestCase):
self.assertEqual(author_state.fields[3][1].null, True)
self.assertEqual(author_state.options, {"unique_together": set(("name", "bio"))})
self.assertEqual(author_state.bases, (models.Model, ))
-
+
self.assertEqual(book_state.app_label, "migrations")
self.assertEqual(book_state.name, "Book")
self.assertEqual([x for x, y in book_state.fields], ["id", "title", "author"])
@@ -62,7 +62,7 @@ class StateTests(TestCase):
self.assertEqual(book_state.fields[2][1].null, False)
self.assertEqual(book_state.options, {"verbose_name": "tome", "db_table": "test_tome"})
self.assertEqual(book_state.bases, (models.Model, ))
-
+
self.assertEqual(author_proxy_state.app_label, "migrations")
self.assertEqual(author_proxy_state.name, "AuthorProxy")
self.assertEqual(author_proxy_state.fields, [])
diff --git a/tests/multiple_database/routers.py b/tests/multiple_database/routers.py
index 5d15b5d6b0..8a84e0b3d2 100644
--- a/tests/multiple_database/routers.py
+++ b/tests/multiple_database/routers.py
@@ -58,4 +58,3 @@ class WriteRouter(object):
# A router that only expresses an opinion on writes
def db_for_write(self, model, **hints):
return 'writer'
-
diff --git a/tests/resolve_url/tests.py b/tests/resolve_url/tests.py
index 70f9e51781..92010f87ed 100644
--- a/tests/resolve_url/tests.py
+++ b/tests/resolve_url/tests.py
@@ -66,4 +66,3 @@ class ResolveUrlTests(TestCase):
"""
with self.assertRaises(NoReverseMatch):
resolve_url(lambda: 'asdf')
-
diff --git a/tests/tablespaces/tests.py b/tests/tablespaces/tests.py
index 088938ca1d..401195b5c3 100644
--- a/tests/tablespaces/tests.py
+++ b/tests/tablespaces/tests.py
@@ -6,7 +6,7 @@ from django.conf import settings
from django.db import connection
from django.db import models
from django.db.models.loading import cache
-from django.core.management.color import no_style
+from django.core.management.color import no_style
from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature
from .models import Article, ArticleRef, Authors, Reviewers, Scientist, ScientistRef
diff --git a/tests/template_tests/templatetags/broken_tag.py b/tests/template_tests/templatetags/broken_tag.py
index d69ddaeb2c..c70e183f0e 100644
--- a/tests/template_tests/templatetags/broken_tag.py
+++ b/tests/template_tests/templatetags/broken_tag.py
@@ -1 +1 @@
-from django import Xtemplate \ No newline at end of file
+from django import Xtemplate
diff --git a/tests/test_client/fixtures/testdata.json b/tests/test_client/fixtures/testdata.json
index 0dcf625939..b844809a18 100644
--- a/tests/test_client/fixtures/testdata.json
+++ b/tests/test_client/fixtures/testdata.json
@@ -1,55 +1,55 @@
[
{
- "pk": "1",
- "model": "auth.user",
+ "pk": "1",
+ "model": "auth.user",
"fields": {
- "username": "testclient",
- "first_name": "Test",
- "last_name": "Client",
- "is_active": true,
- "is_superuser": false,
- "is_staff": false,
- "last_login": "2006-12-17 07:03:31",
- "groups": [],
- "user_permissions": [],
- "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
- "email": "testclient@example.com",
+ "username": "testclient",
+ "first_name": "Test",
+ "last_name": "Client",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2006-12-17 07:03:31",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
+ "email": "testclient@example.com",
"date_joined": "2006-12-17 07:03:31"
}
},
{
- "pk": "2",
- "model": "auth.user",
+ "pk": "2",
+ "model": "auth.user",
"fields": {
- "username": "inactive",
- "first_name": "Inactive",
- "last_name": "User",
- "is_active": false,
- "is_superuser": false,
- "is_staff": false,
- "last_login": "2006-12-17 07:03:31",
- "groups": [],
- "user_permissions": [],
- "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
- "email": "testclient@example.com",
+ "username": "inactive",
+ "first_name": "Inactive",
+ "last_name": "User",
+ "is_active": false,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2006-12-17 07:03:31",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
+ "email": "testclient@example.com",
"date_joined": "2006-12-17 07:03:31"
}
},
{
- "pk": "3",
- "model": "auth.user",
+ "pk": "3",
+ "model": "auth.user",
"fields": {
- "username": "staff",
- "first_name": "Staff",
- "last_name": "Member",
- "is_active": true,
- "is_superuser": false,
- "is_staff": true,
- "last_login": "2006-12-17 07:03:31",
- "groups": [],
- "user_permissions": [],
- "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
- "email": "testclient@example.com",
+ "username": "staff",
+ "first_name": "Staff",
+ "last_name": "Member",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": true,
+ "last_login": "2006-12-17 07:03:31",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
+ "email": "testclient@example.com",
"date_joined": "2006-12-17 07:03:31"
}
}
diff --git a/tests/test_client_regress/fixtures/testdata.json b/tests/test_client_regress/fixtures/testdata.json
index 0dcf625939..b844809a18 100644
--- a/tests/test_client_regress/fixtures/testdata.json
+++ b/tests/test_client_regress/fixtures/testdata.json
@@ -1,55 +1,55 @@
[
{
- "pk": "1",
- "model": "auth.user",
+ "pk": "1",
+ "model": "auth.user",
"fields": {
- "username": "testclient",
- "first_name": "Test",
- "last_name": "Client",
- "is_active": true,
- "is_superuser": false,
- "is_staff": false,
- "last_login": "2006-12-17 07:03:31",
- "groups": [],
- "user_permissions": [],
- "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
- "email": "testclient@example.com",
+ "username": "testclient",
+ "first_name": "Test",
+ "last_name": "Client",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2006-12-17 07:03:31",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
+ "email": "testclient@example.com",
"date_joined": "2006-12-17 07:03:31"
}
},
{
- "pk": "2",
- "model": "auth.user",
+ "pk": "2",
+ "model": "auth.user",
"fields": {
- "username": "inactive",
- "first_name": "Inactive",
- "last_name": "User",
- "is_active": false,
- "is_superuser": false,
- "is_staff": false,
- "last_login": "2006-12-17 07:03:31",
- "groups": [],
- "user_permissions": [],
- "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
- "email": "testclient@example.com",
+ "username": "inactive",
+ "first_name": "Inactive",
+ "last_name": "User",
+ "is_active": false,
+ "is_superuser": false,
+ "is_staff": false,
+ "last_login": "2006-12-17 07:03:31",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
+ "email": "testclient@example.com",
"date_joined": "2006-12-17 07:03:31"
}
},
{
- "pk": "3",
- "model": "auth.user",
+ "pk": "3",
+ "model": "auth.user",
"fields": {
- "username": "staff",
- "first_name": "Staff",
- "last_name": "Member",
- "is_active": true,
- "is_superuser": false,
- "is_staff": true,
- "last_login": "2006-12-17 07:03:31",
- "groups": [],
- "user_permissions": [],
- "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
- "email": "testclient@example.com",
+ "username": "staff",
+ "first_name": "Staff",
+ "last_name": "Member",
+ "is_active": true,
+ "is_superuser": false,
+ "is_staff": true,
+ "last_login": "2006-12-17 07:03:31",
+ "groups": [],
+ "user_permissions": [],
+ "password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161",
+ "email": "testclient@example.com",
"date_joined": "2006-12-17 07:03:31"
}
}
diff --git a/tests/urlpatterns_reverse/included_named_urls.py b/tests/urlpatterns_reverse/included_named_urls.py
index 366fe9b57a..14d2525114 100644
--- a/tests/urlpatterns_reverse/included_named_urls.py
+++ b/tests/urlpatterns_reverse/included_named_urls.py
@@ -9,4 +9,3 @@ urlpatterns = patterns('',
url(r'^(?P<one>\d+)|(?P<two>\d+)/$', empty_view),
(r'^included/', include('urlpatterns_reverse.included_named_urls2')),
)
-
diff --git a/tests/urlpatterns_reverse/included_named_urls2.py b/tests/urlpatterns_reverse/included_named_urls2.py
index b8e4c531fa..897d9e7487 100644
--- a/tests/urlpatterns_reverse/included_named_urls2.py
+++ b/tests/urlpatterns_reverse/included_named_urls2.py
@@ -8,4 +8,3 @@ urlpatterns = patterns('',
url(r'^extra/(?P<extra>\w+)/$', empty_view, name="named-url6"),
url(r'^(?P<one>\d+)|(?P<two>\d+)/$', empty_view),
)
-
diff --git a/tests/urlpatterns_reverse/included_namespace_urls.py b/tests/urlpatterns_reverse/included_namespace_urls.py
index ae098a64dc..aaa1a03687 100644
--- a/tests/urlpatterns_reverse/included_namespace_urls.py
+++ b/tests/urlpatterns_reverse/included_namespace_urls.py
@@ -21,4 +21,3 @@ urlpatterns = patterns('urlpatterns_reverse.views',
(r'^ns-included3/', include('urlpatterns_reverse.included_urls', namespace='inc-ns3')),
(r'^ns-included4/', include('urlpatterns_reverse.namespace_urls', namespace='inc-ns4')),
)
-
diff --git a/tests/urlpatterns_reverse/no_urls.py b/tests/urlpatterns_reverse/no_urls.py
index 5b1959c7dc..1cd34c78f7 100644
--- a/tests/urlpatterns_reverse/no_urls.py
+++ b/tests/urlpatterns_reverse/no_urls.py
@@ -1,2 +1 @@
#from django.conf.urls import patterns, url, include
-
diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py
index 4d77dc946d..9ed1e8f714 100644
--- a/tests/urlpatterns_reverse/tests.py
+++ b/tests/urlpatterns_reverse/tests.py
@@ -656,4 +656,3 @@ class ViewLoadingTests(TestCase):
# swallow it.
self.assertRaises(AttributeError, get_callable,
'urlpatterns_reverse.views_broken.i_am_broken')
-
diff --git a/tests/utils_tests/files/strip_tags1.html b/tests/utils_tests/files/strip_tags1.html
index 8e9ee1d8fd..5e191f31fd 100644
--- a/tests/utils_tests/files/strip_tags1.html
+++ b/tests/utils_tests/files/strip_tags1.html
@@ -13,7 +13,7 @@
<link rel="logo" type="image/svg" href="http://github-media-downloads.s3.amazonaws.com/github-logo.svg" />
<meta name="msapplication-TileImage" content="/windows-tile.png">
<meta name="msapplication-TileColor" content="#ffffff">
-
+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta content="authenticity_token" name="csrf-param" />
@@ -21,12 +21,12 @@
<link href="https://a248.e.akamai.net/assets.github.com/assets/github-f70e4783e00fd4884a9e5e651a43933c9881caa8.css" media="all" rel="stylesheet" type="text/css" />
<link href="https://a248.e.akamai.net/assets.github.com/assets/github2-0d31290d073dea4d8671e2b8c747629aeb074034.css" media="all" rel="stylesheet" type="text/css" />
-
+
<script src="https://a248.e.akamai.net/assets.github.com/assets/frameworks-d76b58e749b52bc47a4c46620bf2c320fabe5248.js" type="text/javascript"></script>
<script src="https://a248.e.akamai.net/assets.github.com/assets/github-67b55380cff8d6766b298e6935a3c1db7d5c6d5d.js" type="text/javascript"></script>
-
+
<meta http-equiv="x-pjax-version" content="1212ad79754350a805cefbcd08a3dadf">
<link data-pjax-transient rel='alternate' type='text/plain+diff' href="&#x2F;django&#x2F;django&#x2F;commit&#x2F;d7504a3d7b8645bdb979bab7ded0e9a9b6dccd0e.diff">
@@ -89,9 +89,9 @@
</ul>
</div>
-
-
+
+
<ul id="user-links">
<li>
<a href="https://github.com/claudep" class="name">
@@ -119,17 +119,17 @@
-
+
</div>
</div>
<div class="site hfeed" itemscope itemtype="http://schema.org/WebPage">
<div class="hentry">
-
+
<div class="pagehead repohead instapaper_ignore readability-menu ">
<div class="container">
<div class="title-actions-bar">
-
+
<ul class="pagehead-actions">
@@ -240,7 +240,7 @@
</h1>
</div>
-
+
<ul class="tabs">
<li><a href="/django/django" class="selected" highlight="repo_source repo_downloads repo_commits repo_tags repo_branches">Code</a></li>
<li><a href="/django/django/network" highlight="repo_network">Network</a></li>
@@ -256,14 +256,14 @@
</li>
</ul>
-
+
<div class="tabnav">
<span class="tabnav-right">
<ul class="tabnav-tabs">
<li><a href="/django/django/tags" class="tabnav-tab" highlight="repo_tags">Tags <span class="counter ">39</span></a></li>
</ul>
-
+
</span>
<div class="tabnav-widget scope">
@@ -648,17 +648,17 @@
</div>
-
-
-
-
+
+
+
+
</div>
</div><!-- /.repohead -->
<div id="js-repo-pjax-container" class="container context-loader-container" data-pjax-container>
-
+
<div class="commit full-commit ">
@@ -675,7 +675,7 @@
<span class="sha-block" data-pjax>
1 parent
-
+
<a href="/django/django/commit/afa3e1633431137f4e76c7efc359b579f4d9c08e" class="sha" data-hotkey="p">afa3e16</a>
</span>
@@ -689,7 +689,7 @@
</div>
<a name="diff-stat"></a>
-
+
<div id='toc' class="details-collapse js-details-container ">
<p class="explain">
<span class="mini-icon mini-icon-diff"></span>Showing <strong>2 changed files</strong>
@@ -720,7 +720,7 @@
</ol>
</div>
-
+
<div id="files" class="diff-view commentable">
<div id="diff-0" class="file js-details-container">
<div class="meta" data-path="django/utils/html.py">
@@ -730,7 +730,7 @@
<span class="js-selectable-text css-truncate css-truncate-target" title="django/utils/html.py">
django/utils/html.py
</span>
-
+
</div>
<div class="actions">
<span class="show-inline-notes">
@@ -868,7 +868,7 @@
<span class="js-selectable-text css-truncate css-truncate-target" title="tests/regressiontests/utils/html.py">
tests/regressiontests/utils/html.py
</span>
-
+
</div>
<div class="actions">
<span class="show-inline-notes">
@@ -1007,7 +1007,7 @@
<div class="discussion-bubble-content bubble">
<div class="discussion-bubble-inner">
<input type='hidden' name='commit_id' value='d7504a3d7b8645bdb979bab7ded0e9a9b6dccd0e'>
-
+
<div class="js-previewable-comment-form previewable-comment-form write-selected" data-preview-url="/preview?repository=4164482">
<div class="comment-form-head tabnav">
@@ -1022,7 +1022,7 @@
<div class="comment-form-error js-comment-form-error" style="display:none;"></div>
<div id="write_bucket_525" class="write-content js-write-bucket js-uploadable-container upload-enabled is-default" data-model="asset">
-
+
<a href="#fullscreen_comment_body_525" class="enable-fullscreen js-enable-fullscreen tooltipped
leftwards " title="Zen Mode">
<span class="mini-icon mini-icon-fullscreen"></span>
@@ -1036,7 +1036,7 @@
data-suggester="525_new_preview_suggester"
required></textarea>
-
+
<p class="drag-and-drop">
<span class="default">
Attach images by dragging &amp; dropping them or
@@ -1059,7 +1059,7 @@
</div>
<div id="preview_bucket_525" class="preview-content js-preview-bucket">
-
+
<div id="openstruct-163168300" class="js-comment comment">
<div class="comment-header normal-comment-header">
<img class="comment-header-gravatar" height="22" src="https://secure.gravatar.com/avatar/cf4198670f0073174b475634964b576b?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="22" />
@@ -1110,7 +1110,7 @@
</div>
-
+
<div class="thread-subscription-status clearfix">
<span class="mega-icon mega-icon-notifications"></span>
@@ -1293,10 +1293,10 @@
<a href="#" class="mini-icon mini-icon-remove-close ajax-error-dismiss"></a>
</div>
-
-
+
+
<span id='server_response_time' data-time='0.09780' data-host='fe2'></span>
-
+
</body>
</html>
diff --git a/tests/utils_tests/files/strip_tags2.txt b/tests/utils_tests/files/strip_tags2.txt
index 6b2a4033c2..331af904ea 100644
--- a/tests/utils_tests/files/strip_tags2.txt
+++ b/tests/utils_tests/files/strip_tags2.txt
@@ -4,31 +4,31 @@ _The code example is available on [github](http://github.com/iontech/Fragments_E
_____________________________________________________________
Ever wanted a code snippet from an Activity to be available to other activities? Perhaps a Button or a ListView, maybe a Layout or any View/ViewGroup for that matter? Fragments let us do just that.
-Necessity is the mother of invention.
+Necessity is the mother of invention.
Before understanding what Fragments are and how they work, we must first realize their existence in the first place.
The Problem
-----------
-Suppose we have an Android app with two Activities- [*FirstActivity*](https://github.com/iontech/Fragments_Example/blob/master/src/main/java/com/github/iontech/fragments_example/FirstActivity.java) and [*SecondActivity*](https://github.com/iontech/Fragments_Example/blob/master/src/main/java/com/github/iontech/fragments_example/SecondActivity.java).
-*FirstActivity* contains two Views, a `TextView` (*textView*) and a `Button` (*button1*); and *button1* has an `onClick()` callback that `Toast`'s a simple message "Button pressed".
+Suppose we have an Android app with two Activities- [*FirstActivity*](https://github.com/iontech/Fragments_Example/blob/master/src/main/java/com/github/iontech/fragments_example/FirstActivity.java) and [*SecondActivity*](https://github.com/iontech/Fragments_Example/blob/master/src/main/java/com/github/iontech/fragments_example/SecondActivity.java).
+*FirstActivity* contains two Views, a `TextView` (*textView*) and a `Button` (*button1*); and *button1* has an `onClick()` callback that `Toast`'s a simple message "Button pressed".
*SecondActivity* contains both the Views present in *FirstActivity* and a `Button` (*button2*).
Now we want to utilize the two layout components(Views) of *FirstActivity* in *SecondActivity*, we can go about this with two approaches:
1. Copy and Paste the xml elements of the two Views.
-2. Create a separate layout for common Views and reuse it using `` layout element.
+2. Create a separate layout for common Views and reuse it using `` layout element.
More about this [here](http://developer.android.com/training/improving-layouts/reusing-layouts.html).
Electing the second approach makes sense cause it enables us to make reusable layouts. Everything seems great till now. We are able to make reusable layouts and use them as many times as we want.
-Now recollect that we have an `onClick()` callback assigned to *button1*. How do we reuse the same callback functionality of *button1* across multiple Activities? `` lets us reuse layouts and not the Activity source.
+Now recollect that we have an `onClick()` callback assigned to *button1*. How do we reuse the same callback functionality of *button1* across multiple Activities? `` lets us reuse layouts and not the Activity source.
This is where Fragments come into play.
Fragments
---------
<center> ![image](http://iontech.files.wordpress.com/2013/01/androidfragmentation1-264x300.png) </center>
Fragments encompass both layout resource and Java source. Hence, unlike ``, they allow us to reuse the View components along with their functionality, if needed.
-Fragments were first introduced in Honeycomb(API 11), living under the `android.app` package.
+Fragments were first introduced in Honeycomb(API 11), living under the `android.app` package.
**Note**: API 11 implies that Fragments have no support for devices less than Honeycomb and, for the record, as of writing this post, [more than 50% of Android devices worldwide run versions of Android below Honeycomb](http://developer.android.com/about/dashboards/index.html). Developer dissapointed? You don't have to be, cause google has been cautious enough to add the Fragment APIs to the support library. Yay!
In the support library Fragment APIs sit in the `android.support.v4.app` package. This post assumes that your `minSdk` support is below API 11. Hence we concentrate on the Fragment APIs of the support library.
@@ -47,13 +47,13 @@ This is done precisely as we do it for our activity layouts. The layout contains
> [fragment_common.xml](https://github.com/iontech/Fragments_Example/blob/master/res/layout/fragment_common.xml)
-
-
-
+
+
+
<button>
-
+
#### 2. Creating reusable Java source
##### Writing the layout's corresponding Fragment class
@@ -71,7 +71,7 @@ Accessing the view elements from the layout is done exactly as we do in an Activ
In Activity we access Views(a Button for our example) as follows
- Button button1 = (Button) findViewById(R.id.button1);
+ Button button1 = (Button) findViewById(R.id.button1);
In Fragment, we need to use the inflated view(if in `onCreateView()`) or get the instance of the host activity and access the views through this instance(when in a [lifecycle callback](http://developer.android.com/guide/components/fragments.html#Lifecycle "Fragment lifecycle callbacks") after `onCreateView()`, I generally do it in `onActivityCreated()`).
Button button1 = (Button) view.findViewById(R.id.button1);
@@ -83,7 +83,7 @@ or
Finally, in `onCreateView()` we must return the View for the fragment's UI.
return view;
-
+
#### 3. Employing the reusable components in Activity
##### Making an Activity to host this Fragment
This is done in two ways, statically by adding `` elements into the Activity layout or dynamically, at run time, by using `FragmentTransaction`s.
@@ -97,7 +97,7 @@ If the `minSdk` is API 11 or higher, then we can leave our inheritance to `Activ
Inorder to statically add a Fragment into your Activity, just add `` element with the necessary layout attributes and the `android:name` attribute set to the fully qualified class name of the corresponding Fragment.
-
+
##### b. Dynamic approach
###### Using `FragmentTransaction`s
diff --git a/tests/utils_tests/test_module/bad_module.py b/tests/utils_tests/test_module/bad_module.py
index cc0cd168ce..69444b0e54 100644
--- a/tests/utils_tests/test_module/bad_module.py
+++ b/tests/utils_tests/test_module/bad_module.py
@@ -1,3 +1,3 @@
import a_package_name_that_does_not_exist
-content = 'Bad Module' \ No newline at end of file
+content = 'Bad Module'
diff --git a/tests/utils_tests/test_module/good_module.py b/tests/utils_tests/test_module/good_module.py
index 0ca689832a..f6261c5bc8 100644
--- a/tests/utils_tests/test_module/good_module.py
+++ b/tests/utils_tests/test_module/good_module.py
@@ -1 +1 @@
-content = 'Good Module' \ No newline at end of file
+content = 'Good Module'
diff --git a/tests/validation/__init__.py b/tests/validation/__init__.py
index 5daa06be66..ba35963744 100644
--- a/tests/validation/__init__.py
+++ b/tests/validation/__init__.py
@@ -13,4 +13,3 @@ class ValidationTestCase(TestCase):
clean()
self.assertIn(field_name, cm.exception.message_dict)
self.assertEqual(message, cm.exception.message_dict[field_name])
-
diff --git a/tests/validation/test_custom_messages.py b/tests/validation/test_custom_messages.py
index 2e259b7aef..b33e232e88 100644
--- a/tests/validation/test_custom_messages.py
+++ b/tests/validation/test_custom_messages.py
@@ -10,4 +10,3 @@ class CustomMessagesTest(ValidationTestCase):
def test_custom_null_message(self):
cmm = CustomMessagesModel()
self.assertFieldFailsValidationWithMessage(cmm.full_clean, 'number', ['NULL'])
-
diff --git a/tests/validation/test_unique.py b/tests/validation/test_unique.py
index bca1b36c93..79b197a262 100644
--- a/tests/validation/test_unique.py
+++ b/tests/validation/test_unique.py
@@ -141,4 +141,3 @@ class PerformUniqueChecksTest(TestCase):
with self.assertRaises(ValidationError) as cm:
m.full_clean()
self.assertEqual(cm.exception.message_dict, {'no': ['Custom unique number message.']})
-
diff --git a/tests/version/tests.py b/tests/version/tests.py
index a5d49fc450..0a40d988bb 100644
--- a/tests/version/tests.py
+++ b/tests/version/tests.py
@@ -24,4 +24,3 @@ class VersionTests(TestCase):
)
for ver_tuple, ver_string in tuples_to_strings:
self.assertEqual(get_version(ver_tuple), ver_string)
-
diff --git a/tests/view_tests/__init__.py b/tests/view_tests/__init__.py
index 1193ffe010..3f16dadae2 100644
--- a/tests/view_tests/__init__.py
+++ b/tests/view_tests/__init__.py
@@ -8,4 +8,3 @@ except_args = (b'Broken!', # plain exception with ASCII text
'¡Broken!', # non-ASCII unicode data
'¡Broken!'.encode('utf-8'), # non-ASCII, utf-8 encoded bytestring
b'\xa1Broken!', ) # non-ASCII, latin1 bytestring
-
diff --git a/tests/view_tests/templatetags/debugtags.py b/tests/view_tests/templatetags/debugtags.py
index 9e1945cb23..5aafc3a9e0 100644
--- a/tests/view_tests/templatetags/debugtags.py
+++ b/tests/view_tests/templatetags/debugtags.py
@@ -8,4 +8,3 @@ register = template.Library()
@register.simple_tag
def go_boom(arg):
raise BrokenException(arg)
-
diff --git a/tests/view_tests/tests/test_specials.py b/tests/view_tests/tests/test_specials.py
index fc1dd98c0e..0b933ac0de 100644
--- a/tests/view_tests/tests/test_specials.py
+++ b/tests/view_tests/tests/test_specials.py
@@ -36,4 +36,3 @@ class URLHandling(TestCase):
"""
response = self.client.get('/permanent_nonascii_redirect/')
self.assertRedirects(response, self.redirect_target, status_code=301)
-