From d7b9aaa366dd54ecc3142c588162e3adc7c2f7ac Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 19 Nov 2016 18:19:41 +0100 Subject: [PATCH] Refs #23919 -- Removed encoding preambles and future imports --- django/__init__.py | 2 -- django/conf/app_template/admin.py-tpl | 2 +- django/conf/app_template/apps.py-tpl | 2 +- django/conf/app_template/models.py-tpl | 2 +- django/conf/app_template/tests.py-tpl | 2 +- django/conf/app_template/views.py-tpl | 2 +- django/conf/global_settings.py | 2 -- django/conf/locale/__init__.py | 3 --- django/conf/locale/ar/formats.py | 3 --- django/conf/locale/az/formats.py | 3 --- django/conf/locale/bg/formats.py | 3 --- django/conf/locale/bn/formats.py | 3 --- django/conf/locale/bs/formats.py | 3 --- django/conf/locale/ca/formats.py | 3 --- django/conf/locale/cs/formats.py | 3 --- django/conf/locale/cy/formats.py | 3 --- django/conf/locale/da/formats.py | 3 --- django/conf/locale/de/formats.py | 3 --- django/conf/locale/de_CH/formats.py | 4 --- django/conf/locale/el/formats.py | 3 --- django/conf/locale/en/formats.py | 3 --- django/conf/locale/en_AU/formats.py | 3 --- django/conf/locale/en_GB/formats.py | 3 --- django/conf/locale/eo/formats.py | 3 --- django/conf/locale/es/formats.py | 3 --- django/conf/locale/es_AR/formats.py | 3 --- django/conf/locale/es_CO/formats.py | 3 --- django/conf/locale/es_MX/formats.py | 3 --- django/conf/locale/es_NI/formats.py | 3 --- django/conf/locale/es_PR/formats.py | 3 --- django/conf/locale/et/formats.py | 3 --- django/conf/locale/eu/formats.py | 3 --- django/conf/locale/fa/formats.py | 3 --- django/conf/locale/fi/formats.py | 3 --- django/conf/locale/fr/formats.py | 3 --- django/conf/locale/fy/formats.py | 3 --- django/conf/locale/ga/formats.py | 3 --- django/conf/locale/gd/formats.py | 3 --- django/conf/locale/gl/formats.py | 3 --- django/conf/locale/he/formats.py | 3 --- django/conf/locale/hi/formats.py | 3 --- django/conf/locale/hr/formats.py | 3 --- django/conf/locale/hu/formats.py | 3 --- django/conf/locale/id/formats.py | 3 --- django/conf/locale/is/formats.py | 3 --- django/conf/locale/it/formats.py | 3 --- django/conf/locale/ja/formats.py | 3 --- django/conf/locale/ka/formats.py | 3 --- django/conf/locale/km/formats.py | 3 --- django/conf/locale/kn/formats.py | 3 --- django/conf/locale/ko/formats.py | 3 --- django/conf/locale/lt/formats.py | 3 --- django/conf/locale/lv/formats.py | 3 --- django/conf/locale/mk/formats.py | 3 --- django/conf/locale/ml/formats.py | 3 --- django/conf/locale/mn/formats.py | 3 --- django/conf/locale/nb/formats.py | 3 --- django/conf/locale/nl/formats.py | 3 --- django/conf/locale/nn/formats.py | 3 --- django/conf/locale/pl/formats.py | 3 --- django/conf/locale/pt/formats.py | 3 --- django/conf/locale/pt_BR/formats.py | 3 --- django/conf/locale/ro/formats.py | 3 --- django/conf/locale/ru/formats.py | 3 --- django/conf/locale/sk/formats.py | 3 --- django/conf/locale/sl/formats.py | 3 --- django/conf/locale/sq/formats.py | 3 --- django/conf/locale/sr/formats.py | 3 --- django/conf/locale/sr_Latn/formats.py | 3 --- django/conf/locale/sv/formats.py | 3 --- django/conf/locale/ta/formats.py | 3 --- django/conf/locale/te/formats.py | 3 --- django/conf/locale/th/formats.py | 3 --- django/conf/locale/tr/formats.py | 3 --- django/conf/locale/uk/formats.py | 4 --- django/conf/locale/vi/formats.py | 3 --- django/conf/locale/zh_Hans/formats.py | 3 --- django/conf/locale/zh_Hant/formats.py | 3 --- django/contrib/admin/checks.py | 3 --- django/contrib/admin/forms.py | 2 -- django/contrib/admin/helpers.py | 2 -- .../contrib/admin/migrations/0001_initial.py | 3 --- .../0002_logentry_remove_auto_add.py | 3 --- django/contrib/admin/models.py | 2 -- django/contrib/admin/options.py | 2 -- .../contrib/admin/templatetags/admin_list.py | 2 -- django/contrib/admin/utils.py | 2 -- django/contrib/admin/widgets.py | 2 -- django/contrib/auth/backends.py | 2 -- django/contrib/auth/base_user.py | 2 -- django/contrib/auth/checks.py | 3 --- django/contrib/auth/forms.py | 2 -- django/contrib/auth/hashers.py | 2 -- django/contrib/auth/management/__init__.py | 2 -- .../management/commands/changepassword.py | 2 -- .../management/commands/createsuperuser.py | 2 -- .../contrib/auth/migrations/0001_initial.py | 3 --- .../0002_alter_permission_name_max_length.py | 3 --- .../0003_alter_user_email_max_length.py | 3 --- .../0004_alter_user_username_opts.py | 3 --- .../0005_alter_user_last_login_null.py | 3 --- .../0006_require_contenttypes_0002.py | 3 --- ...007_alter_validators_add_error_messages.py | 3 --- .../0008_alter_user_username_max_length.py | 3 --- django/contrib/auth/models.py | 2 -- django/contrib/auth/password_validation.py | 2 -- django/contrib/contenttypes/admin.py | 2 -- django/contrib/contenttypes/checks.py | 3 --- django/contrib/contenttypes/fields.py | 2 -- django/contrib/contenttypes/forms.py | 2 -- .../contenttypes/migrations/0001_initial.py | 3 --- .../0002_remove_content_type_name.py | 3 --- django/contrib/contenttypes/models.py | 2 -- django/contrib/contenttypes/views.py | 2 -- .../flatpages/migrations/0001_initial.py | 3 --- django/contrib/flatpages/models.py | 2 -- .../gis/db/backends/postgis/adapter.py | 2 -- django/contrib/gis/db/models/lookups.py | 2 -- .../contrib/gis/db/models/sql/conversion.py | 2 -- django/contrib/gis/feeds.py | 2 -- django/contrib/gis/forms/fields.py | 2 -- django/contrib/gis/forms/widgets.py | 2 -- django/contrib/gis/gdal/libgdal.py | 2 -- django/contrib/gis/geos/geometry.py | 2 -- django/contrib/gis/serializers/geojson.py | 2 -- django/contrib/gis/sitemaps/views.py | 2 -- django/contrib/gis/views.py | 2 -- .../contrib/humanize/templatetags/humanize.py | 3 --- django/contrib/messages/storage/base.py | 2 -- django/contrib/postgres/indexes.py | 2 -- django/contrib/postgres/utils.py | 2 -- django/contrib/redirects/middleware.py | 2 -- .../redirects/migrations/0001_initial.py | 3 --- django/contrib/sessions/backends/base.py | 2 -- django/contrib/sessions/base_session.py | 2 -- .../sessions/migrations/0001_initial.py | 3 --- django/contrib/sessions/models.py | 2 -- django/contrib/sites/managers.py | 3 --- .../contrib/sites/migrations/0001_initial.py | 3 --- .../migrations/0002_alter_domain_unique.py | 3 --- django/contrib/sites/models.py | 2 -- django/contrib/sites/requests.py | 2 -- django/contrib/sites/shortcuts.py | 2 -- .../management/commands/collectstatic.py | 2 -- .../management/commands/findstatic.py | 2 -- django/contrib/staticfiles/storage.py | 2 -- django/contrib/syndication/views.py | 2 -- django/core/cache/backends/base.py | 2 -- django/core/cache/utils.py | 2 -- django/core/checks/__init__.py | 3 --- django/core/checks/caches.py | 2 -- django/core/checks/messages.py | 3 --- django/core/checks/model_checks.py | 3 --- django/core/checks/registry.py | 3 --- django/core/checks/templates.py | 3 --- django/core/checks/urls.py | 2 -- django/core/files/base.py | 2 -- django/core/files/uploadhandler.py | 2 -- django/core/handlers/base.py | 2 -- django/core/handlers/exception.py | 2 -- django/core/handlers/wsgi.py | 2 -- django/core/mail/__init__.py | 2 -- django/core/mail/message.py | 2 -- django/core/management/__init__.py | 2 -- django/core/management/base.py | 3 --- django/core/management/commands/check.py | 3 --- .../management/commands/compilemessages.py | 2 -- django/core/management/commands/flush.py | 2 -- django/core/management/commands/inspectdb.py | 4 --- django/core/management/commands/loaddata.py | 2 -- .../core/management/commands/makemessages.py | 2 -- django/core/management/commands/migrate.py | 3 --- django/core/management/commands/runserver.py | 2 -- .../management/commands/showmigrations.py | 3 --- django/core/management/commands/sqlflush.py | 2 -- django/core/management/commands/sqlmigrate.py | 3 --- .../management/commands/sqlsequencereset.py | 2 -- django/core/management/sql.py | 2 -- django/core/management/templates.py | 2 -- django/core/management/utils.py | 2 -- django/core/serializers/json.py | 3 --- django/core/serializers/python.py | 2 -- django/core/serializers/xml_serializer.py | 2 -- django/core/servers/basehttp.py | 2 -- django/core/signing.py | 2 -- django/core/validators.py | 2 -- django/db/backends/mysql/base.py | 2 -- django/db/backends/mysql/operations.py | 2 -- django/db/backends/oracle/base.py | 2 -- django/db/backends/oracle/operations.py | 2 -- .../db/backends/postgresql/introspection.py | 2 -- django/db/backends/postgresql/operations.py | 2 -- django/db/backends/sqlite3/base.py | 2 -- django/db/backends/sqlite3/features.py | 2 -- django/db/backends/sqlite3/operations.py | 2 -- django/db/backends/utils.py | 2 -- django/db/migrations/autodetector.py | 2 -- django/db/migrations/exceptions.py | 2 -- django/db/migrations/executor.py | 2 -- django/db/migrations/graph.py | 2 -- django/db/migrations/loader.py | 2 -- django/db/migrations/migration.py | 2 -- django/db/migrations/operations/base.py | 2 -- django/db/migrations/operations/fields.py | 2 -- django/db/migrations/operations/models.py | 2 -- django/db/migrations/operations/special.py | 2 -- django/db/migrations/optimizer.py | 3 --- django/db/migrations/questioner.py | 2 -- django/db/migrations/recorder.py | 2 -- django/db/migrations/serializer.py | 2 -- django/db/migrations/state.py | 2 -- django/db/migrations/writer.py | 4 --- django/db/models/base.py | 2 -- django/db/models/fields/__init__.py | 3 --- django/db/models/fields/related.py | 2 -- .../db/models/fields/related_descriptors.py | 2 -- django/db/models/fields/reverse_related.py | 2 -- django/db/models/functions/datetime.py | 2 -- django/db/models/indexes.py | 2 -- django/db/models/options.py | 2 -- django/db/models/query_utils.py | 2 -- django/forms/boundfield.py | 2 -- django/forms/fields.py | 2 -- django/forms/forms.py | 2 -- django/forms/formsets.py | 2 -- django/forms/models.py | 2 -- django/forms/utils.py | 2 -- django/forms/widgets.py | 2 -- django/http/cookie.py | 2 -- django/http/multipartparser.py | 2 -- django/http/request.py | 2 -- django/http/response.py | 2 -- django/middleware/csrf.py | 2 -- django/template/backends/base.py | 3 --- django/template/backends/django.py | 3 --- django/template/backends/dummy.py | 3 --- django/template/backends/jinja2.py | 3 --- django/template/backends/utils.py | 3 --- django/template/base.py | 2 -- django/template/context_processors.py | 2 -- django/template/defaultfilters.py | 2 -- django/template/defaulttags.py | 2 -- django/templatetags/cache.py | 2 -- django/templatetags/i18n.py | 2 -- django/test/client.py | 2 -- django/test/html.py | 2 -- django/test/selenium.py | 2 -- django/test/testcases.py | 2 -- django/urls/base.py | 2 -- django/urls/exceptions.py | 2 -- django/urls/resolvers.py | 2 -- django/urls/utils.py | 2 -- django/utils/_os.py | 2 -- django/utils/cache.py | 2 -- django/utils/crypto.py | 2 -- django/utils/dateformat.py | 2 -- django/utils/deprecation.py | 2 -- django/utils/encoding.py | 3 --- django/utils/feedgenerator.py | 2 -- django/utils/glob.py | 2 -- django/utils/html.py | 2 -- django/utils/http.py | 2 -- django/utils/inspect.py | 2 -- django/utils/jslex.py | 2 -- django/utils/log.py | 2 -- django/utils/lorem_ipsum.py | 2 -- django/utils/numberformat.py | 2 -- django/utils/regex_helper.py | 2 -- django/utils/six.py | 2 -- django/utils/text.py | 2 -- django/utils/timesince.py | 2 -- django/utils/translation/__init__.py | 2 -- django/utils/translation/template.py | 2 -- django/utils/translation/trans_real.py | 2 -- django/utils/version.py | 2 -- django/views/debug.py | 2 -- django/views/generic/base.py | 2 -- django/views/generic/dates.py | 2 -- django/views/generic/detail.py | 2 -- django/views/generic/list.py | 2 -- django/views/static.py | 2 -- docs/conf.py | 4 --- docs/howto/writing-migrations.txt | 6 ----- docs/ref/files/file.txt | 1 - docs/ref/migration-operations.txt | 3 --- docs/topics/i18n/formatting.txt | 2 -- docs/topics/migrations.txt | 26 ------------------- docs/topics/templates.txt | 2 -- tests/admin_changelist/tests.py | 2 -- tests/admin_checks/tests.py | 2 -- tests/admin_custom_urls/tests.py | 2 -- tests/admin_docs/test_middleware.py | 2 -- tests/admin_docs/test_utils.py | 2 -- tests/admin_docs/test_views.py | 2 -- tests/admin_docs/tests.py | 2 -- tests/admin_filters/models.py | 2 -- tests/admin_filters/tests.py | 2 -- tests/admin_inlines/models.py | 3 --- tests/admin_inlines/test_templates.py | 2 -- tests/admin_inlines/tests.py | 2 -- tests/admin_ordering/models.py | 1 - tests/admin_ordering/tests.py | 2 -- tests/admin_registration/tests.py | 2 -- .../migrations/0001_initial.py | 2 -- .../another_app_waiting_migration/models.py | 2 -- .../app_raising_messages/models.py | 3 --- .../app_raising_warning/models.py | 3 --- .../migrations/0001_initial.py | 2 -- .../app_waiting_migration/models.py | 2 -- tests/admin_scripts/tests.py | 22 +--------------- tests/admin_utils/test_logentry.py | 3 --- tests/admin_utils/tests.py | 2 -- tests/admin_views/admin.py | 3 --- .../custom_has_permission_admin.py | 2 -- tests/admin_views/customadmin.py | 2 -- tests/admin_views/models.py | 3 --- tests/admin_views/test_adminsite.py | 2 -- tests/admin_views/test_templatetags.py | 2 -- tests/admin_views/tests.py | 3 --- tests/admin_widgets/models.py | 2 -- tests/admin_widgets/tests.py | 3 --- tests/aggregation/models.py | 1 - tests/aggregation/tests.py | 2 -- tests/aggregation_regress/models.py | 1 - tests/aggregation_regress/tests.py | 2 -- tests/annotations/models.py | 1 - tests/annotations/tests.py | 2 -- tests/app_loading/tests.py | 2 -- tests/apps/apps.py | 2 -- tests/apps/models.py | 2 -- tests/apps/tests.py | 2 -- tests/auth_tests/test_auth_backends.py | 2 -- tests/auth_tests/test_basic.py | 3 --- tests/auth_tests/test_checks.py | 2 -- tests/auth_tests/test_deprecated_views.py | 3 --- tests/auth_tests/test_forms.py | 3 --- tests/auth_tests/test_handlers.py | 2 -- tests/auth_tests/test_hashers.py | 3 --- tests/auth_tests/test_management.py | 2 -- tests/auth_tests/test_models.py | 3 --- tests/auth_tests/test_validators.py | 3 --- tests/auth_tests/test_views.py | 3 --- tests/backends/models.py | 2 -- tests/backends/test_mysql.py | 2 -- tests/backends/tests.py | 3 --- tests/base/models.py | 2 -- tests/basic/models.py | 1 - tests/basic/tests.py | 2 -- tests/builtin_server/tests.py | 2 -- tests/bulk_create/tests.py | 2 -- tests/cache/tests.py | 4 --- tests/check_framework/models.py | 3 --- tests/check_framework/tests.py | 3 --- tests/conditional_processing/tests.py | 3 --- tests/contenttypes_tests/models.py | 2 -- .../operations_migrations/0001_initial.py | 3 --- .../operations_migrations/0002_rename_foo.py | 3 --- tests/contenttypes_tests/test_models.py | 2 -- tests/contenttypes_tests/tests.py | 3 --- tests/contenttypes_tests/urls.py | 2 -- tests/csrf_tests/tests.py | 3 --- tests/csrf_tests/views.py | 2 -- tests/custom_columns/models.py | 2 -- tests/custom_columns/tests.py | 2 -- tests/custom_lookups/tests.py | 2 -- tests/custom_managers/models.py | 2 -- tests/custom_managers/tests.py | 2 -- tests/custom_methods/tests.py | 2 -- tests/custom_pk/models.py | 3 --- tests/custom_pk/tests.py | 3 --- tests/datatypes/tests.py | 2 -- tests/dates/models.py | 2 -- tests/dates/tests.py | 2 -- tests/datetimes/models.py | 2 -- tests/datetimes/tests.py | 2 -- tests/db_functions/models.py | 2 -- tests/db_functions/test_datetime.py | 2 -- tests/db_functions/tests.py | 2 -- tests/dbshell/test_postgresql_psycopg2.py | 3 --- tests/defer/tests.py | 2 -- tests/defer_regress/tests.py | 2 -- tests/delete/models.py | 2 -- tests/delete/tests.py | 2 -- tests/delete_regress/tests.py | 2 -- tests/deprecation/tests.py | 2 -- tests/distinct_on_fields/models.py | 2 -- tests/distinct_on_fields/tests.py | 2 -- tests/expressions/models.py | 2 -- tests/expressions/test_queryset_values.py | 2 -- tests/expressions/tests.py | 2 -- tests/expressions_case/models.py | 2 -- tests/expressions_case/tests.py | 2 -- tests/extra_regress/models.py | 2 -- tests/extra_regress/tests.py | 2 -- tests/field_deconstruction/tests.py | 2 -- tests/field_defaults/models.py | 1 - tests/field_subclassing/fields.py | 2 -- tests/field_subclassing/tests.py | 2 -- tests/file_storage/tests.py | 3 --- tests/file_uploads/tests.py | 3 --- tests/file_uploads/views.py | 2 -- tests/files/tests.py | 3 --- tests/fixtures/tests.py | 2 -- tests/fixtures_model_package/tests.py | 2 -- tests/fixtures_regress/models.py | 2 -- tests/fixtures_regress/tests.py | 3 --- tests/flatpages_tests/test_forms.py | 2 -- tests/flatpages_tests/test_models.py | 4 --- tests/flatpages_tests/test_sitemaps.py | 2 -- tests/force_insert_update/tests.py | 2 -- .../field_tests/test_booleanfield.py | 2 -- .../forms_tests/field_tests/test_charfield.py | 2 -- .../field_tests/test_choicefield.py | 3 --- .../field_tests/test_combofield.py | 2 -- .../forms_tests/field_tests/test_datefield.py | 1 - .../field_tests/test_datetimefield.py | 2 -- .../field_tests/test_decimalfield.py | 3 --- .../field_tests/test_durationfield.py | 2 -- .../field_tests/test_emailfield.py | 3 --- .../forms_tests/field_tests/test_filefield.py | 3 --- .../field_tests/test_filepathfield.py | 2 -- .../field_tests/test_floatfield.py | 2 -- .../field_tests/test_genericipaddressfield.py | 2 -- .../field_tests/test_imagefield.py | 2 -- .../field_tests/test_integerfield.py | 3 --- .../field_tests/test_multiplechoicefield.py | 2 -- .../field_tests/test_nullbooleanfield.py | 2 -- .../field_tests/test_regexfield.py | 3 --- .../forms_tests/field_tests/test_slugfield.py | 3 --- .../field_tests/test_splitdatetimefield.py | 2 -- .../forms_tests/field_tests/test_timefield.py | 2 -- .../field_tests/test_typedchoicefield.py | 2 -- .../test_typedmultiplechoicefield.py | 2 -- .../forms_tests/field_tests/test_urlfield.py | 3 --- .../forms_tests/field_tests/test_uuidfield.py | 2 -- tests/forms_tests/models.py | 3 --- .../forms_tests/tests/test_error_messages.py | 3 --- tests/forms_tests/tests/test_forms.py | 3 --- tests/forms_tests/tests/test_formsets.py | 3 --- tests/forms_tests/tests/test_i18n.py | 2 -- tests/forms_tests/tests/test_media.py | 1 - tests/forms_tests/tests/test_utils.py | 3 --- tests/forms_tests/tests/test_validators.py | 2 -- tests/forms_tests/tests/test_widgets.py | 2 -- tests/forms_tests/tests/tests.py | 3 --- tests/forms_tests/widget_tests/test_select.py | 3 --- .../widget_tests/test_textinput.py | 3 --- tests/forms_tests/widget_tests/test_widget.py | 2 -- tests/generic_inline_admin/tests.py | 3 --- tests/generic_relations/models.py | 2 -- tests/generic_relations/tests.py | 2 -- tests/generic_views/forms.py | 2 -- tests/generic_views/test_base.py | 2 -- tests/generic_views/test_dates.py | 3 --- tests/generic_views/test_detail.py | 3 --- tests/generic_views/test_edit.py | 2 -- tests/generic_views/test_list.py | 3 --- tests/generic_views/urls.py | 3 --- tests/generic_views/views.py | 2 -- tests/get_earliest_or_latest/tests.py | 2 -- tests/get_object_or_404/tests.py | 2 -- tests/get_or_create/models.py | 2 -- tests/get_or_create/tests.py | 2 -- tests/gis_tests/distapp/tests.py | 2 -- tests/gis_tests/gdal_tests/test_srs.py | 3 --- tests/gis_tests/geo3d/tests.py | 2 -- tests/gis_tests/geoadmin/tests.py | 2 -- tests/gis_tests/geoapp/feeds.py | 2 -- tests/gis_tests/geoapp/test_feeds.py | 2 -- tests/gis_tests/geoapp/test_functions.py | 2 -- tests/gis_tests/geoapp/test_regress.py | 3 --- tests/gis_tests/geoapp/test_serializers.py | 2 -- tests/gis_tests/geoapp/test_sitemaps.py | 2 -- tests/gis_tests/geoapp/tests.py | 2 -- tests/gis_tests/geoapp/urls.py | 2 -- tests/gis_tests/geogapp/tests.py | 2 -- tests/gis_tests/geos_tests/test_geos.py | 2 -- tests/gis_tests/geos_tests/test_io.py | 2 -- .../gis_tests/gis_migrations/test_commands.py | 2 -- .../gis_migrations/test_operations.py | 2 -- tests/gis_tests/inspectapp/tests.py | 2 -- tests/gis_tests/layermap/tests.py | 3 --- tests/gis_tests/relatedapp/tests.py | 2 -- tests/gis_tests/test_geoip2.py | 3 --- tests/handlers/tests.py | 4 --- tests/handlers/urls.py | 2 -- tests/handlers/views.py | 2 -- tests/httpwrappers/tests.py | 3 --- tests/humanize_tests/tests.py | 2 -- tests/i18n/contenttypes/tests.py | 3 --- tests/i18n/patterns/tests.py | 2 -- tests/i18n/test_compilation.py | 3 --- tests/i18n/test_extraction.py | 3 --- tests/i18n/test_percents.py | 3 --- tests/i18n/tests.py | 3 --- tests/i18n/urls.py | 2 -- tests/inline_formsets/models.py | 1 - tests/inline_formsets/tests.py | 2 -- tests/inspectdb/models.py | 3 --- tests/inspectdb/tests.py | 3 --- tests/introspection/models.py | 2 -- tests/introspection/tests.py | 2 -- .../test_backend_specific.py | 3 --- tests/invalid_models_tests/test_models.py | 3 --- .../test_ordinary_fields.py | 3 --- .../test_relative_fields.py | 3 --- tests/known_related_objects/tests.py | 2 -- tests/logging_tests/tests.py | 3 --- tests/logging_tests/urls.py | 2 -- tests/logging_tests/urls_i18n.py | 2 -- tests/logging_tests/views.py | 2 -- tests/lookup/models.py | 2 -- tests/lookup/test_timefield.py | 2 -- tests/lookup/tests.py | 2 -- tests/m2m_and_m2o/models.py | 2 -- tests/m2m_intermediary/models.py | 2 -- tests/m2m_intermediary/tests.py | 2 -- tests/m2m_multiple/tests.py | 2 -- tests/m2m_recursive/tests.py | 2 -- tests/m2m_regress/tests.py | 2 -- tests/m2m_through/tests.py | 2 -- tests/m2m_through_regress/models.py | 2 -- tests/m2m_through_regress/test_multitable.py | 2 -- tests/m2m_through_regress/tests.py | 2 -- tests/m2o_recursive/tests.py | 2 -- tests/mail/test_sendtestemail.py | 2 -- tests/mail/tests.py | 3 --- tests/managers_regress/tests.py | 2 -- tests/many_to_many/models.py | 2 -- tests/many_to_many/tests.py | 2 -- tests/many_to_one/models.py | 2 -- tests/many_to_one_null/tests.py | 2 -- tests/max_lengths/tests.py | 2 -- tests/middleware/tests.py | 3 --- tests/middleware_exceptions/middleware.py | 2 -- .../custom_migrations/0001_initial.py | 3 --- .../migrations/0001_initial.py | 3 --- .../migrations/0002_add_book.py | 3 --- .../0001_initial.py | 3 --- .../0002_remove_ipaddressfield_ip.py | 3 --- .../author_app/migrations/0001_initial.py | 3 --- .../author_app/migrations/0002_alter_id.py | 3 --- .../book_app/migrations/0001_initial.py | 3 --- .../migrations/0001_initial.py | 3 --- .../migrations/0002_conflicting_second.py | 3 --- .../migrations/0002_second.py | 3 --- .../lookuperror_a/migrations/0001_initial.py | 3 --- .../lookuperror_a/migrations/0002_a2.py | 3 --- .../lookuperror_a/migrations/0003_a3.py | 3 --- .../lookuperror_a/migrations/0004_a4.py | 3 --- .../lookuperror_b/migrations/0001_initial.py | 3 --- .../lookuperror_b/migrations/0002_b2.py | 3 --- .../lookuperror_b/migrations/0003_b3.py | 3 --- .../lookuperror_c/migrations/0001_initial.py | 3 --- .../lookuperror_c/migrations/0002_c2.py | 3 --- .../lookuperror_c/migrations/0003_c3.py | 3 --- .../migrated_app/migrations/0001_initial.py | 3 --- .../migrations/0001_initial.py | 3 --- .../mutate_state_a/migrations/0001_initial.py | 3 --- .../mutate_state_b/migrations/0001_initial.py | 3 --- .../migrations/0002_add_field.py | 3 --- .../unmigrated_app/models.py | 3 --- .../migrations/0001_initial.py | 3 --- .../migrations/0002_conflicting_second.py | 3 --- .../migrations/0002_second.py | 3 --- tests/migrations/models.py | 3 --- .../0001_initial.py | 2 -- .../0002_initial.py | 2 -- .../test_auto_now_add/0001_initial.py | 3 --- tests/migrations/test_autodetector.py | 1 - tests/migrations/test_commands.py | 9 ------- tests/migrations/test_loader.py | 2 -- .../test_migrations/0001_initial.py | 3 --- .../migrations/test_migrations/0002_second.py | 3 --- .../0001_initial.py | 3 --- .../0001_initial.py | 3 --- .../0002_second.py | 3 --- .../test_migrations_conflict/0001_initial.py | 3 --- .../0002_conflicting_second.py | 3 --- .../test_migrations_conflict/0002_second.py | 3 --- .../0001_initial.py | 3 --- .../0001_initial.py | 3 --- .../0002_second.py | 3 --- .../test_migrations_first/second.py | 3 --- .../test_migrations_first/thefirst.py | 3 --- .../0001_not_initial.py | 3 --- .../0001_initial.py | 3 --- .../0002_conflicting_second.py | 3 --- .../0002_second.py | 3 --- .../0001_initial.py | 3 --- .../test_migrations_no_changes/0002_second.py | 3 --- .../test_migrations_no_changes/0003_third.py | 3 --- .../0001_initial.py | 3 --- .../0001_initial.py | 3 --- .../migrations/test_migrations_order/0001.py | 3 --- .../0001_initial.py | 3 --- .../test_migrations_run_before/0002_second.py | 3 --- .../test_migrations_run_before/0003_third.py | 3 --- .../test_migrations_squashed/0001_initial.py | 3 --- .../0001_squashed_0002.py | 3 --- .../test_migrations_squashed/0002_second.py | 3 --- .../1_auto.py | 3 --- .../2_auto.py | 3 --- .../3_auto.py | 3 --- .../3_squashed_5.py | 3 --- .../4_auto.py | 3 --- .../5_auto.py | 3 --- .../6_auto.py | 3 --- .../7_auto.py | 3 --- .../app1/1_auto.py | 3 --- .../app1/2_auto.py | 3 --- .../app1/2_squashed_3.py | 3 --- .../app1/3_auto.py | 3 --- .../app1/4_auto.py | 3 --- .../app2/1_auto.py | 3 --- .../app2/1_squashed_2.py | 3 --- .../app2/2_auto.py | 3 --- .../1_auto.py | 3 --- .../2_auto.py | 3 --- .../3_squashed_5.py | 3 --- .../6_auto.py | 3 --- .../7_auto.py | 3 --- .../0001_initial.py | 3 --- .../0001_squashed_0002.py | 3 --- .../0002_second.py | 3 --- .../0003_third.py | 3 --- .../app1/1_auto.py | 3 --- .../app1/2_auto.py | 3 --- .../app1/2_squashed_3.py | 3 --- .../app1/3_auto.py | 3 --- .../app1/4_auto.py | 3 --- .../app2/1_auto.py | 3 --- .../app2/1_squashed_2.py | 3 --- .../app2/2_auto.py | 3 --- .../test_migrations_unmigdep/0001_initial.py | 3 --- tests/migrations/test_operations.py | 2 -- tests/migrations/test_optimizer.py | 2 -- tests/migrations/test_questioner.py | 2 -- tests/migrations/test_writer.py | 4 --- .../test_migrations_2/0001_initial.py | 3 --- .../test_migrations_2_first/0001_initial.py | 3 --- .../test_migrations_2_first/0002_second.py | 3 --- .../test_migrations_2_no_deps/0001_initial.py | 3 --- tests/model_fields/test_charfield.py | 3 --- tests/model_fields/test_imagefield.py | 2 -- tests/model_fields/test_promises.py | 2 -- tests/model_fields/test_slugfield.py | 3 --- tests/model_fields/test_textfield.py | 3 --- tests/model_forms/models.py | 2 -- tests/model_forms/test_uuid.py | 2 -- tests/model_forms/tests.py | 2 -- tests/model_formsets/models.py | 2 -- tests/model_formsets/tests.py | 2 -- tests/model_formsets_regress/tests.py | 2 -- tests/model_inheritance/models.py | 2 -- .../test_abstract_inheritance.py | 2 -- tests/model_inheritance/tests.py | 2 -- tests/model_inheritance_regress/models.py | 2 -- tests/model_inheritance_regress/tests.py | 2 -- tests/model_options/test_tablespaces.py | 2 -- tests/model_package/tests.py | 2 -- tests/model_regress/models.py | 3 --- tests/model_regress/tests.py | 2 -- tests/modeladmin/models.py | 1 - tests/modeladmin/test_checks.py | 2 -- tests/modeladmin/tests.py | 2 -- tests/multiple_database/routers.py | 2 -- tests/multiple_database/tests.py | 2 -- tests/nested_foreign_keys/tests.py | 2 -- tests/null_fk/tests.py | 2 -- tests/null_fk_ordering/models.py | 2 -- tests/null_fk_ordering/tests.py | 2 -- tests/null_queries/models.py | 2 -- tests/null_queries/tests.py | 2 -- tests/one_to_one/models.py | 2 -- tests/one_to_one/tests.py | 2 -- tests/or_lookups/tests.py | 3 --- tests/order_with_respect_to/base_tests.py | 2 -- tests/order_with_respect_to/tests.py | 2 -- tests/ordering/tests.py | 2 -- tests/pagination/tests.py | 2 -- .../array_default_migrations/0001_initial.py | 3 --- .../0002_integerarraymodel_field_2.py | 3 --- .../array_index_migrations/0001_initial.py | 3 --- .../migrations/0001_setup_extensions.py | 3 --- .../migrations/0002_create_test_models.py | 3 --- tests/postgres_tests/test_hstore.py | 3 --- tests/postgres_tests/test_json.py | 2 -- tests/postgres_tests/test_unaccent.py | 3 --- tests/prefetch_related/test_uuid.py | 2 -- tests/prefetch_related/tests.py | 2 -- tests/properties/tests.py | 2 -- tests/proxy_model_inheritance/tests.py | 2 -- tests/proxy_models/tests.py | 2 -- tests/queries/models.py | 2 -- tests/queries/test_qs_combinators.py | 2 -- tests/queries/tests.py | 2 -- tests/queryset_pickle/tests.py | 2 -- tests/raw_query/tests.py | 2 -- tests/requests/tests.py | 3 --- tests/reserved_names/tests.py | 2 -- tests/resolve_url/tests.py | 2 -- tests/responses/tests.py | 4 --- tests/reverse_lookup/tests.py | 2 -- tests/save_delete_hooks/models.py | 2 -- tests/save_delete_hooks/tests.py | 2 -- tests/select_for_update/tests.py | 2 -- tests/select_related/tests.py | 2 -- tests/select_related_onetoone/tests.py | 2 -- tests/select_related_regress/models.py | 2 -- tests/select_related_regress/tests.py | 2 -- tests/serializers/models/base.py | 2 -- tests/serializers/models/data.py | 2 -- tests/serializers/test_data.py | 2 -- tests/serializers/test_json.py | 3 --- tests/serializers/test_natural.py | 2 -- tests/serializers/test_xml.py | 3 --- tests/serializers/test_yaml.py | 3 --- tests/serializers/tests.py | 3 --- tests/servers/tests.py | 3 --- tests/signals/models.py | 2 -- tests/signals/tests.py | 2 -- tests/signed_cookies_tests/tests.py | 2 -- tests/signing/tests.py | 2 -- tests/sitemaps_tests/test_generic.py | 2 -- tests/sitemaps_tests/test_http.py | 2 -- tests/sitemaps_tests/test_https.py | 2 -- .../migrations/0001_initial.py | 3 --- tests/sites_tests/tests.py | 2 -- tests/staticfiles_tests/cases.py | 3 --- tests/staticfiles_tests/settings.py | 2 -- tests/staticfiles_tests/test_finders.py | 2 -- tests/staticfiles_tests/test_management.py | 2 -- tests/staticfiles_tests/test_storage.py | 2 -- tests/staticfiles_tests/test_templatetags.py | 2 -- tests/staticfiles_tests/test_views.py | 2 -- tests/str/models.py | 1 - tests/str/tests.py | 3 --- tests/string_lookup/models.py | 3 --- tests/string_lookup/tests.py | 3 --- tests/swappable_models/tests.py | 2 -- tests/syndication_tests/feeds.py | 2 -- tests/syndication_tests/tests.py | 2 -- tests/template_backends/test_dummy.py | 4 --- tests/template_backends/test_jinja2.py | 4 --- .../filter_tests/test_escapejs.py | 2 -- .../filter_tests/test_filesizeformat.py | 2 -- .../filter_tests/test_floatformat.py | 3 --- .../filter_tests/test_force_escape.py | 3 --- .../filter_tests/test_iriencode.py | 3 --- .../template_tests/filter_tests/test_lower.py | 3 --- .../filter_tests/test_slugify.py | 3 --- .../filter_tests/test_timesince.py | 2 -- .../filter_tests/test_timeuntil.py | 2 -- .../template_tests/filter_tests/test_title.py | 3 --- .../filter_tests/test_truncatechars_html.py | 3 --- .../filter_tests/test_truncatewords_html.py | 3 --- .../template_tests/filter_tests/test_upper.py | 3 --- .../filter_tests/test_urlencode.py | 3 --- .../filter_tests/test_urlize.py | 3 --- .../template_tests/syntax_tests/i18n/base.py | 2 -- .../syntax_tests/i18n/test_blocktrans.py | 3 --- .../syntax_tests/i18n/test_filters.py | 3 --- .../i18n/test_get_available_languages.py | 2 -- .../i18n/test_get_language_info.py | 3 --- .../i18n/test_get_language_info_list.py | 3 --- .../syntax_tests/i18n/test_trans.py | 2 -- .../i18n/test_underscore_syntax.py | 2 -- .../syntax_tests/test_filter_syntax.py | 3 --- tests/template_tests/syntax_tests/test_url.py | 1 - tests/template_tests/test_callables.py | 2 -- tests/template_tests/test_context.py | 1 - tests/template_tests/test_custom.py | 2 -- tests/template_tests/test_loaders.py | 3 --- tests/template_tests/test_logging.py | 2 -- tests/template_tests/test_parser.py | 2 -- tests/template_tests/test_response.py | 2 -- tests/template_tests/test_unicode.py | 3 --- tests/template_tests/tests.py | 3 --- tests/template_tests/urls.py | 3 --- tests/template_tests/utils.py | 4 --- .../test_conditional_content_removal.py | 2 -- tests/test_client/tests.py | 3 --- tests/test_client_regress/tests.py | 3 --- tests/test_runner/tests.py | 2 -- tests/test_utils/tests.py | 3 --- tests/timezones/tests.py | 2 -- tests/transactions/models.py | 2 -- tests/transactions/tests.py | 2 -- tests/unmanaged_models/tests.py | 2 -- tests/update/tests.py | 2 -- tests/update_only_fields/tests.py | 2 -- .../test_localeregexprovider.py | 2 -- tests/urlpatterns_reverse/tests.py | 3 --- tests/urlpatterns_reverse/utils.py | 2 -- tests/utils_tests/test_crypto.py | 2 -- tests/utils_tests/test_dateformat.py | 2 -- tests/utils_tests/test_dateparse.py | 2 -- tests/utils_tests/test_encoding.py | 3 --- tests/utils_tests/test_feedgenerator.py | 2 -- tests/utils_tests/test_functional.py | 3 --- tests/utils_tests/test_glob.py | 2 -- tests/utils_tests/test_html.py | 3 --- tests/utils_tests/test_http.py | 3 --- tests/utils_tests/test_ipv6.py | 2 -- tests/utils_tests/test_jslex.py | 2 -- tests/utils_tests/test_lazyobject.py | 2 -- tests/utils_tests/test_lorem_ipsum.py | 3 --- tests/utils_tests/test_numberformat.py | 3 --- tests/utils_tests/test_regex_helper.py | 2 -- tests/utils_tests/test_safestring.py | 2 -- tests/utils_tests/test_simplelazyobject.py | 2 -- tests/utils_tests/test_text.py | 3 --- tests/utils_tests/test_timesince.py | 2 -- tests/validation/models.py | 2 -- tests/validation/test_error_messages.py | 3 --- tests/validation/test_unique.py | 2 -- tests/validation/test_validators.py | 2 -- tests/validation/tests.py | 2 -- tests/validators/tests.py | 3 --- tests/view_tests/__init__.py | 4 --- tests/view_tests/generic_urls.py | 3 --- tests/view_tests/tests/test_debug.py | 5 ---- tests/view_tests/tests/test_defaults.py | 2 -- tests/view_tests/tests/test_i18n.py | 3 --- tests/view_tests/tests/test_json.py | 3 --- tests/view_tests/tests/test_specials.py | 3 --- tests/view_tests/tests/test_static.py | 2 -- tests/view_tests/urls.py | 1 - tests/view_tests/views.py | 2 -- tests/wsgi/tests.py | 2 -- 831 files changed, 6 insertions(+), 2066 deletions(-) diff --git a/django/__init__.py b/django/__init__.py index ab50cac6242e..4da99681eef8 100644 --- a/django/__init__.py +++ b/django/__init__.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.utils.version import get_version VERSION = (2, 0, 0, 'alpha', 0) diff --git a/django/conf/app_template/admin.py-tpl b/django/conf/app_template/admin.py-tpl index b2ff964e3ba1..8c38f3f3dad5 100644 --- a/django/conf/app_template/admin.py-tpl +++ b/django/conf/app_template/admin.py-tpl @@ -1,3 +1,3 @@ -{{ unicode_literals }}from django.contrib import admin +from django.contrib import admin # Register your models here. diff --git a/django/conf/app_template/apps.py-tpl b/django/conf/app_template/apps.py-tpl index 8d1a017751c8..9b2ce5289c52 100644 --- a/django/conf/app_template/apps.py-tpl +++ b/django/conf/app_template/apps.py-tpl @@ -1,4 +1,4 @@ -{{ unicode_literals }}from django.apps import AppConfig +from django.apps import AppConfig class {{ camel_case_app_name }}Config(AppConfig): diff --git a/django/conf/app_template/models.py-tpl b/django/conf/app_template/models.py-tpl index 7a54b3e371a6..71a836239075 100644 --- a/django/conf/app_template/models.py-tpl +++ b/django/conf/app_template/models.py-tpl @@ -1,3 +1,3 @@ -{{ unicode_literals }}from django.db import models +from django.db import models # Create your models here. diff --git a/django/conf/app_template/tests.py-tpl b/django/conf/app_template/tests.py-tpl index fa96c654d5df..7ce503c2dd97 100644 --- a/django/conf/app_template/tests.py-tpl +++ b/django/conf/app_template/tests.py-tpl @@ -1,3 +1,3 @@ -{{ unicode_literals }}from django.test import TestCase +from django.test import TestCase # Create your tests here. diff --git a/django/conf/app_template/views.py-tpl b/django/conf/app_template/views.py-tpl index 61821e705e82..91ea44a218fb 100644 --- a/django/conf/app_template/views.py-tpl +++ b/django/conf/app_template/views.py-tpl @@ -1,3 +1,3 @@ -{{ unicode_literals }}from django.shortcuts import render +from django.shortcuts import render # Create your views here. diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index 9cf2732d30a9..754e6e5cdf7e 100644 --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- """ Default Django settings. Override these with settings in the module pointed to by the DJANGO_SETTINGS_MODULE environment variable. """ -from __future__ import unicode_literals # This is defined here as a do-nothing function because we can't import diff --git a/django/conf/locale/__init__.py b/django/conf/locale/__init__.py index 2cdda3cffd8f..89504ce1e535 100644 --- a/django/conf/locale/__init__.py +++ b/django/conf/locale/__init__.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - """ LANG_INFO is a dictionary structure to provide meta information about languages. diff --git a/django/conf/locale/ar/formats.py b/django/conf/locale/ar/formats.py index 1cdba2d98440..770b45344806 100644 --- a/django/conf/locale/ar/formats.py +++ b/django/conf/locale/ar/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F، Y' diff --git a/django/conf/locale/az/formats.py b/django/conf/locale/az/formats.py index ceb8165d651b..82470d1f161f 100644 --- a/django/conf/locale/az/formats.py +++ b/django/conf/locale/az/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j E Y' diff --git a/django/conf/locale/bg/formats.py b/django/conf/locale/bg/formats.py index 98820e703fef..4013dad1a8af 100644 --- a/django/conf/locale/bg/formats.py +++ b/django/conf/locale/bg/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd F Y' diff --git a/django/conf/locale/bn/formats.py b/django/conf/locale/bn/formats.py index 2348c3afa356..ed03b21c6994 100644 --- a/django/conf/locale/bn/formats.py +++ b/django/conf/locale/bn/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F, Y' diff --git a/django/conf/locale/bs/formats.py b/django/conf/locale/bs/formats.py index cce3900f1e51..4018515dfbdf 100644 --- a/django/conf/locale/bs/formats.py +++ b/django/conf/locale/bs/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. N Y.' diff --git a/django/conf/locale/ca/formats.py b/django/conf/locale/ca/formats.py index d42016b71651..baf47432bcf5 100644 --- a/django/conf/locale/ca/formats.py +++ b/django/conf/locale/ca/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'j \d\e F \d\e Y' diff --git a/django/conf/locale/cs/formats.py b/django/conf/locale/cs/formats.py index 3f2d3fa70ed9..ba4e3a1f8bb5 100644 --- a/django/conf/locale/cs/formats.py +++ b/django/conf/locale/cs/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. E Y' diff --git a/django/conf/locale/cy/formats.py b/django/conf/locale/cy/formats.py index 4a69a88e6a04..031a40fff653 100644 --- a/django/conf/locale/cy/formats.py +++ b/django/conf/locale/cy/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' # '25 Hydref 2006' diff --git a/django/conf/locale/da/formats.py b/django/conf/locale/da/formats.py index 90ba056f79bc..3af215895c74 100644 --- a/django/conf/locale/da/formats.py +++ b/django/conf/locale/da/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y' diff --git a/django/conf/locale/de/formats.py b/django/conf/locale/de/formats.py index cf1283b2a523..d47f57af3571 100644 --- a/django/conf/locale/de/formats.py +++ b/django/conf/locale/de/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y' diff --git a/django/conf/locale/de_CH/formats.py b/django/conf/locale/de_CH/formats.py index f8a9b90631e9..e09f9ffebda6 100644 --- a/django/conf/locale/de_CH/formats.py +++ b/django/conf/locale/de_CH/formats.py @@ -1,11 +1,7 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # - # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date -from __future__ import unicode_literals - DATE_FORMAT = 'j. F Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = 'j. F Y H:i' diff --git a/django/conf/locale/el/formats.py b/django/conf/locale/el/formats.py index bafa461094e6..3db1ad4829db 100644 --- a/django/conf/locale/el/formats.py +++ b/django/conf/locale/el/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd/m/Y' diff --git a/django/conf/locale/en/formats.py b/django/conf/locale/en/formats.py index 63b23fa260d0..dd226fc129f0 100644 --- a/django/conf/locale/en/formats.py +++ b/django/conf/locale/en/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'N j, Y' diff --git a/django/conf/locale/en_AU/formats.py b/django/conf/locale/en_AU/formats.py index fe97ea98c195..378c18320750 100644 --- a/django/conf/locale/en_AU/formats.py +++ b/django/conf/locale/en_AU/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j M Y' # '25 Oct 2006' diff --git a/django/conf/locale/en_GB/formats.py b/django/conf/locale/en_GB/formats.py index 190ec7316d01..5f906881f724 100644 --- a/django/conf/locale/en_GB/formats.py +++ b/django/conf/locale/en_GB/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j M Y' # '25 Oct 2006' diff --git a/django/conf/locale/eo/formats.py b/django/conf/locale/eo/formats.py index 1e61912442a1..430fc8f24231 100644 --- a/django/conf/locale/eo/formats.py +++ b/django/conf/locale/eo/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'j\-\a \d\e F Y' # '26-a de julio 1887' diff --git a/django/conf/locale/es/formats.py b/django/conf/locale/es/formats.py index 701032aefda5..c89e66b30713 100644 --- a/django/conf/locale/es/formats.py +++ b/django/conf/locale/es/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'j \d\e F \d\e Y' diff --git a/django/conf/locale/es_AR/formats.py b/django/conf/locale/es_AR/formats.py index 9daf38d8eff1..30058a1398d3 100644 --- a/django/conf/locale/es_AR/formats.py +++ b/django/conf/locale/es_AR/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'j N Y' diff --git a/django/conf/locale/es_CO/formats.py b/django/conf/locale/es_CO/formats.py index 3671a0a25428..cefbe26dae5e 100644 --- a/django/conf/locale/es_CO/formats.py +++ b/django/conf/locale/es_CO/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -from __future__ import unicode_literals - DATE_FORMAT = r'j \d\e F \d\e Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\a\s H:i' diff --git a/django/conf/locale/es_MX/formats.py b/django/conf/locale/es_MX/formats.py index d15041660d79..228a821716d7 100644 --- a/django/conf/locale/es_MX/formats.py +++ b/django/conf/locale/es_MX/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -from __future__ import unicode_literals - DATE_FORMAT = r'j \d\e F \d\e Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\a\s H:i' diff --git a/django/conf/locale/es_NI/formats.py b/django/conf/locale/es_NI/formats.py index cc03b2cd2c2e..2eacf506ee51 100644 --- a/django/conf/locale/es_NI/formats.py +++ b/django/conf/locale/es_NI/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -from __future__ import unicode_literals - DATE_FORMAT = r'j \d\e F \d\e Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\a\s H:i' diff --git a/django/conf/locale/es_PR/formats.py b/django/conf/locale/es_PR/formats.py index c6680f7975b4..7f53ef9fe295 100644 --- a/django/conf/locale/es_PR/formats.py +++ b/django/conf/locale/es_PR/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -from __future__ import unicode_literals - DATE_FORMAT = r'j \d\e F \d\e Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\a\s H:i' diff --git a/django/conf/locale/et/formats.py b/django/conf/locale/et/formats.py index d43da89dd3e2..8c23b1053e93 100644 --- a/django/conf/locale/et/formats.py +++ b/django/conf/locale/et/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y' diff --git a/django/conf/locale/eu/formats.py b/django/conf/locale/eu/formats.py index 4ddf04ef5ab8..8d2785183f01 100644 --- a/django/conf/locale/eu/formats.py +++ b/django/conf/locale/eu/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'Yeko M\re\n d\a' diff --git a/django/conf/locale/fa/formats.py b/django/conf/locale/fa/formats.py index c1678b81cddf..419a9a24c193 100644 --- a/django/conf/locale/fa/formats.py +++ b/django/conf/locale/fa/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/fi/formats.py b/django/conf/locale/fi/formats.py index b5c74211a3a8..2bdec1400e5d 100644 --- a/django/conf/locale/fi/formats.py +++ b/django/conf/locale/fi/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. E Y' diff --git a/django/conf/locale/fr/formats.py b/django/conf/locale/fr/formats.py index ed6d8c7aaaa6..6db0b01dda89 100644 --- a/django/conf/locale/fr/formats.py +++ b/django/conf/locale/fr/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/fy/formats.py b/django/conf/locale/fy/formats.py index 330c2f296e08..9dd995dde2d5 100644 --- a/django/conf/locale/fy/formats.py +++ b/django/conf/locale/fy/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = diff --git a/django/conf/locale/ga/formats.py b/django/conf/locale/ga/formats.py index b3b19740767c..e47d873fa22c 100644 --- a/django/conf/locale/ga/formats.py +++ b/django/conf/locale/ga/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/gd/formats.py b/django/conf/locale/gd/formats.py index 0eac9726690f..4a2db2313147 100644 --- a/django/conf/locale/gd/formats.py +++ b/django/conf/locale/gd/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/gl/formats.py b/django/conf/locale/gl/formats.py index 996b8cd6b4f5..2dac9599d8f9 100644 --- a/django/conf/locale/gl/formats.py +++ b/django/conf/locale/gl/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'j \d\e F \d\e Y' diff --git a/django/conf/locale/he/formats.py b/django/conf/locale/he/formats.py index 274996f3a048..550d9bfefc7e 100644 --- a/django/conf/locale/he/formats.py +++ b/django/conf/locale/he/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j בF Y' diff --git a/django/conf/locale/hi/formats.py b/django/conf/locale/hi/formats.py index a2ea2e0bf6de..799168d83ab0 100644 --- a/django/conf/locale/hi/formats.py +++ b/django/conf/locale/hi/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/hr/formats.py b/django/conf/locale/hr/formats.py index 59bcb8657d3f..921c709406e1 100644 --- a/django/conf/locale/hr/formats.py +++ b/django/conf/locale/hr/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. E Y.' diff --git a/django/conf/locale/hu/formats.py b/django/conf/locale/hu/formats.py index e17e8c99adc4..33b9b6e22580 100644 --- a/django/conf/locale/hu/formats.py +++ b/django/conf/locale/hu/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'Y. F j.' diff --git a/django/conf/locale/id/formats.py b/django/conf/locale/id/formats.py index dc3dbf9dd805..065e0329d168 100644 --- a/django/conf/locale/id/formats.py +++ b/django/conf/locale/id/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j N Y' diff --git a/django/conf/locale/is/formats.py b/django/conf/locale/is/formats.py index 1b328eff1f25..6fbaa2a1c885 100644 --- a/django/conf/locale/is/formats.py +++ b/django/conf/locale/is/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y' diff --git a/django/conf/locale/it/formats.py b/django/conf/locale/it/formats.py index 054b973f0a13..b4819c02531d 100644 --- a/django/conf/locale/it/formats.py +++ b/django/conf/locale/it/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd F Y' # 25 Ottobre 2006 diff --git a/django/conf/locale/ja/formats.py b/django/conf/locale/ja/formats.py index 63f043872a22..20194519b5ba 100644 --- a/django/conf/locale/ja/formats.py +++ b/django/conf/locale/ja/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'Y年n月j日' diff --git a/django/conf/locale/ka/formats.py b/django/conf/locale/ka/formats.py index 226f5f721ea2..e91c577c8dca 100644 --- a/django/conf/locale/ka/formats.py +++ b/django/conf/locale/ka/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'l, j F, Y' diff --git a/django/conf/locale/km/formats.py b/django/conf/locale/km/formats.py index 52ff4f95e844..b214a81c91d1 100644 --- a/django/conf/locale/km/formats.py +++ b/django/conf/locale/km/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j ខែ F ឆ្នាំ Y' diff --git a/django/conf/locale/kn/formats.py b/django/conf/locale/kn/formats.py index 4b8355165e0d..568c65dc65e3 100644 --- a/django/conf/locale/kn/formats.py +++ b/django/conf/locale/kn/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/ko/formats.py b/django/conf/locale/ko/formats.py index 0344e9e16102..5183a78274c3 100644 --- a/django/conf/locale/ko/formats.py +++ b/django/conf/locale/ko/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'Y년 n월 j일' diff --git a/django/conf/locale/lt/formats.py b/django/conf/locale/lt/formats.py index d688669b7890..4fd47c0f77f6 100644 --- a/django/conf/locale/lt/formats.py +++ b/django/conf/locale/lt/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'Y \m. E j \d.' diff --git a/django/conf/locale/lv/formats.py b/django/conf/locale/lv/formats.py index e30a65388c62..8b6c730ee9ee 100644 --- a/django/conf/locale/lv/formats.py +++ b/django/conf/locale/lv/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'Y. \g\a\d\a j. F' diff --git a/django/conf/locale/mk/formats.py b/django/conf/locale/mk/formats.py index 2f01147a0a1a..ef168e5d2187 100644 --- a/django/conf/locale/mk/formats.py +++ b/django/conf/locale/mk/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd F Y' diff --git a/django/conf/locale/ml/formats.py b/django/conf/locale/ml/formats.py index 63b23fa260d0..dd226fc129f0 100644 --- a/django/conf/locale/ml/formats.py +++ b/django/conf/locale/ml/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'N j, Y' diff --git a/django/conf/locale/mn/formats.py b/django/conf/locale/mn/formats.py index f41d532ba9ca..506e6143207e 100644 --- a/django/conf/locale/mn/formats.py +++ b/django/conf/locale/mn/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd F Y' diff --git a/django/conf/locale/nb/formats.py b/django/conf/locale/nb/formats.py index 09fa857b4ce2..8cfb6f854cb1 100644 --- a/django/conf/locale/nb/formats.py +++ b/django/conf/locale/nb/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y' diff --git a/django/conf/locale/nl/formats.py b/django/conf/locale/nl/formats.py index 581848f6e4a8..69e8e8061559 100644 --- a/django/conf/locale/nl/formats.py +++ b/django/conf/locale/nl/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' # '20 januari 2009' diff --git a/django/conf/locale/nn/formats.py b/django/conf/locale/nn/formats.py index b2e654c1e148..24289035fc51 100644 --- a/django/conf/locale/nn/formats.py +++ b/django/conf/locale/nn/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y' diff --git a/django/conf/locale/pl/formats.py b/django/conf/locale/pl/formats.py index 9cc17764947f..ddd82742cd7b 100644 --- a/django/conf/locale/pl/formats.py +++ b/django/conf/locale/pl/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j E Y' diff --git a/django/conf/locale/pt/formats.py b/django/conf/locale/pt/formats.py index 143351c0cde3..60f9b1b5fdfd 100644 --- a/django/conf/locale/pt/formats.py +++ b/django/conf/locale/pt/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'j \d\e F \d\e Y' diff --git a/django/conf/locale/pt_BR/formats.py b/django/conf/locale/pt_BR/formats.py index 9f728783c58a..0c0646c946d3 100644 --- a/django/conf/locale/pt_BR/formats.py +++ b/django/conf/locale/pt_BR/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'j \d\e F \d\e Y' diff --git a/django/conf/locale/ro/formats.py b/django/conf/locale/ro/formats.py index 4ed143b74542..ba3fd73b4a4c 100644 --- a/django/conf/locale/ro/formats.py +++ b/django/conf/locale/ro/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/ru/formats.py b/django/conf/locale/ru/formats.py index 07b11812851f..c443ae1bd05a 100644 --- a/django/conf/locale/ru/formats.py +++ b/django/conf/locale/ru/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j E Y г.' diff --git a/django/conf/locale/sk/formats.py b/django/conf/locale/sk/formats.py index 04bdceb00039..c6a40bbc49e0 100644 --- a/django/conf/locale/sk/formats.py +++ b/django/conf/locale/sk/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y' diff --git a/django/conf/locale/sl/formats.py b/django/conf/locale/sl/formats.py index a4e9973a5522..65ad2592e127 100644 --- a/django/conf/locale/sl/formats.py +++ b/django/conf/locale/sl/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd. F Y' diff --git a/django/conf/locale/sq/formats.py b/django/conf/locale/sq/formats.py index 0fb21a6583aa..ef9cb6a755d3 100644 --- a/django/conf/locale/sq/formats.py +++ b/django/conf/locale/sq/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd F Y' diff --git a/django/conf/locale/sr/formats.py b/django/conf/locale/sr/formats.py index 5c5e48e20e41..06089d6a9169 100644 --- a/django/conf/locale/sr/formats.py +++ b/django/conf/locale/sr/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y.' diff --git a/django/conf/locale/sr_Latn/formats.py b/django/conf/locale/sr_Latn/formats.py index 5c5e48e20e41..06089d6a9169 100644 --- a/django/conf/locale/sr_Latn/formats.py +++ b/django/conf/locale/sr_Latn/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j. F Y.' diff --git a/django/conf/locale/sv/formats.py b/django/conf/locale/sv/formats.py index f2de0bc16bc4..3ab4b0b86dcc 100644 --- a/django/conf/locale/sv/formats.py +++ b/django/conf/locale/sv/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/ta/formats.py b/django/conf/locale/ta/formats.py index 89282447096d..c1a1be6aee78 100644 --- a/django/conf/locale/ta/formats.py +++ b/django/conf/locale/ta/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F, Y' diff --git a/django/conf/locale/te/formats.py b/django/conf/locale/te/formats.py index 74420d0ea175..59693985e3ee 100644 --- a/django/conf/locale/te/formats.py +++ b/django/conf/locale/te/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/th/formats.py b/django/conf/locale/th/formats.py index 1b0e2d4f917b..04ceda1c926f 100644 --- a/django/conf/locale/th/formats.py +++ b/django/conf/locale/th/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'j F Y' diff --git a/django/conf/locale/tr/formats.py b/django/conf/locale/tr/formats.py index c765f77489a7..6bb62fc1c49d 100644 --- a/django/conf/locale/tr/formats.py +++ b/django/conf/locale/tr/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'd F Y' diff --git a/django/conf/locale/uk/formats.py b/django/conf/locale/uk/formats.py index 938a97d42a97..515d48d8351a 100644 --- a/django/conf/locale/uk/formats.py +++ b/django/conf/locale/uk/formats.py @@ -1,9 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # - -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 = 'd E Y р.' diff --git a/django/conf/locale/vi/formats.py b/django/conf/locale/vi/formats.py index ee87e2f3261a..78ec196d3860 100644 --- a/django/conf/locale/vi/formats.py +++ b/django/conf/locale/vi/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = r'\N\gà\y d \t\há\n\g n \nă\m Y' diff --git a/django/conf/locale/zh_Hans/formats.py b/django/conf/locale/zh_Hans/formats.py index b6bac2f90e29..863b8980dd4e 100644 --- a/django/conf/locale/zh_Hans/formats.py +++ b/django/conf/locale/zh_Hans/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'Y年n月j日' # 2016年9月5日 diff --git a/django/conf/locale/zh_Hant/formats.py b/django/conf/locale/zh_Hant/formats.py index b6bac2f90e29..863b8980dd4e 100644 --- a/django/conf/locale/zh_Hant/formats.py +++ b/django/conf/locale/zh_Hant/formats.py @@ -1,8 +1,5 @@ -# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # -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 = 'Y年n月j日' # 2016年9月5日 diff --git a/django/contrib/admin/checks.py b/django/contrib/admin/checks.py index 286c1169a489..33c60a3ab872 100644 --- a/django/contrib/admin/checks.py +++ b/django/contrib/admin/checks.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from itertools import chain from django.apps import apps diff --git a/django/contrib/admin/forms.py b/django/contrib/admin/forms.py index ed71d63e4c18..7c3d196012d1 100644 --- a/django/contrib/admin/forms.py +++ b/django/contrib/admin/forms.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm from django.utils.translation import ugettext_lazy as _ diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py index 604fcd5b260f..ea56840445ea 100644 --- a/django/contrib/admin/helpers.py +++ b/django/contrib/admin/helpers.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import json from django import forms diff --git a/django/contrib/admin/migrations/0001_initial.py b/django/contrib/admin/migrations/0001_initial.py index c615bd79c3c7..f1e2804ce4c9 100644 --- a/django/contrib/admin/migrations/0001_initial.py +++ b/django/contrib/admin/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.admin.models from django.conf import settings from django.db import migrations, models diff --git a/django/contrib/admin/migrations/0002_logentry_remove_auto_add.py b/django/contrib/admin/migrations/0002_logentry_remove_auto_add.py index fb66c31bd3e3..a2b19162f28c 100644 --- a/django/contrib/admin/migrations/0002_logentry_remove_auto_add.py +++ b/django/contrib/admin/migrations/0002_logentry_remove_auto_add.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models from django.utils import timezone diff --git a/django/contrib/admin/models.py b/django/contrib/admin/models.py index a8245a20e4bb..724209dd0d30 100644 --- a/django/contrib/admin/models.py +++ b/django/contrib/admin/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import json from django.conf import settings diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index aef1e2c24e8a..edde9077ac92 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import copy import json import operator diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py index ad6c03ea89ba..ec4356f5467f 100644 --- a/django/contrib/admin/templatetags/admin_list.py +++ b/django/contrib/admin/templatetags/admin_list.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.contrib.admin.templatetags.admin_urls import add_preserved_filters diff --git a/django/contrib/admin/utils.py b/django/contrib/admin/utils.py index 1e13d13d31b0..cf1738154816 100644 --- a/django/contrib/admin/utils.py +++ b/django/contrib/admin/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import decimal from collections import defaultdict diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py index 5960f82d9114..9f93ae3a42fc 100644 --- a/django/contrib/admin/widgets.py +++ b/django/contrib/admin/widgets.py @@ -1,8 +1,6 @@ """ Form Widget classes specific to the Django admin site. """ -from __future__ import unicode_literals - import copy from django import forms diff --git a/django/contrib/auth/backends.py b/django/contrib/auth/backends.py index 8df95db5eeac..08a20c61ffc7 100644 --- a/django/contrib/auth/backends.py +++ b/django/contrib/auth/backends.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission diff --git a/django/contrib/auth/base_user.py b/django/contrib/auth/base_user.py index 104748ff69b5..c6f4c9665cd7 100644 --- a/django/contrib/auth/base_user.py +++ b/django/contrib/auth/base_user.py @@ -2,8 +2,6 @@ This module allows importing AbstractBaseUser even when django.contrib.auth is not in INSTALLED_APPS. """ -from __future__ import unicode_literals - import unicodedata from django.contrib.auth import password_validation diff --git a/django/contrib/auth/checks.py b/django/contrib/auth/checks.py index 05487fe53641..ec133e80ee50 100644 --- a/django/contrib/auth/checks.py +++ b/django/contrib/auth/checks.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from itertools import chain from types import MethodType diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index 02250d83da6f..51c513cb671d 100644 --- a/django/contrib/auth/forms.py +++ b/django/contrib/auth/forms.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unicodedata from django import forms diff --git a/django/contrib/auth/hashers.py b/django/contrib/auth/hashers.py index c29b27d64b81..4b8b12782e8b 100644 --- a/django/contrib/auth/hashers.py +++ b/django/contrib/auth/hashers.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import base64 import binascii import hashlib diff --git a/django/contrib/auth/management/__init__.py b/django/contrib/auth/management/__init__.py index 659fe63282fb..17fd8dd11aac 100644 --- a/django/contrib/auth/management/__init__.py +++ b/django/contrib/auth/management/__init__.py @@ -1,8 +1,6 @@ """ Creates permissions for all installed apps that need permissions. """ -from __future__ import unicode_literals - import getpass import unicodedata diff --git a/django/contrib/auth/management/commands/changepassword.py b/django/contrib/auth/management/commands/changepassword.py index 1c4eee3b917d..c0c4ce3c6112 100644 --- a/django/contrib/auth/management/commands/changepassword.py +++ b/django/contrib/auth/management/commands/changepassword.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import getpass from django.contrib.auth import get_user_model diff --git a/django/contrib/auth/management/commands/createsuperuser.py b/django/contrib/auth/management/commands/createsuperuser.py index 76971b7b7235..b9f13b7b0581 100644 --- a/django/contrib/auth/management/commands/createsuperuser.py +++ b/django/contrib/auth/management/commands/createsuperuser.py @@ -1,8 +1,6 @@ """ Management utility to create superusers. """ -from __future__ import unicode_literals - import getpass import sys diff --git a/django/contrib/auth/migrations/0001_initial.py b/django/contrib/auth/migrations/0001_initial.py index 65db802ed8ca..f97caae1e464 100644 --- a/django/contrib/auth/migrations/0001_initial.py +++ b/django/contrib/auth/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.auth.models from django.contrib.auth import validators from django.db import migrations, models diff --git a/django/contrib/auth/migrations/0002_alter_permission_name_max_length.py b/django/contrib/auth/migrations/0002_alter_permission_name_max_length.py index 8b58e7814b1a..556c320409c3 100644 --- a/django/contrib/auth/migrations/0002_alter_permission_name_max_length.py +++ b/django/contrib/auth/migrations/0002_alter_permission_name_max_length.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/django/contrib/auth/migrations/0003_alter_user_email_max_length.py b/django/contrib/auth/migrations/0003_alter_user_email_max_length.py index 0a082f2656a6..ee8a9bd607d8 100644 --- a/django/contrib/auth/migrations/0003_alter_user_email_max_length.py +++ b/django/contrib/auth/migrations/0003_alter_user_email_max_length.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/django/contrib/auth/migrations/0004_alter_user_username_opts.py b/django/contrib/auth/migrations/0004_alter_user_username_opts.py index e7a521fd6d70..f4afcf7bd87c 100644 --- a/django/contrib/auth/migrations/0004_alter_user_username_opts.py +++ b/django/contrib/auth/migrations/0004_alter_user_username_opts.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.contrib.auth import validators from django.db import migrations, models from django.utils import six diff --git a/django/contrib/auth/migrations/0005_alter_user_last_login_null.py b/django/contrib/auth/migrations/0005_alter_user_last_login_null.py index b8b9289787a9..97cd105a0f2f 100644 --- a/django/contrib/auth/migrations/0005_alter_user_last_login_null.py +++ b/django/contrib/auth/migrations/0005_alter_user_last_login_null.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/django/contrib/auth/migrations/0006_require_contenttypes_0002.py b/django/contrib/auth/migrations/0006_require_contenttypes_0002.py index 77c45e70b139..48c26be0117e 100644 --- a/django/contrib/auth/migrations/0006_require_contenttypes_0002.py +++ b/django/contrib/auth/migrations/0006_require_contenttypes_0002.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/django/contrib/auth/migrations/0007_alter_validators_add_error_messages.py b/django/contrib/auth/migrations/0007_alter_validators_add_error_messages.py index 8e5b14150391..6d44280856fc 100644 --- a/django/contrib/auth/migrations/0007_alter_validators_add_error_messages.py +++ b/django/contrib/auth/migrations/0007_alter_validators_add_error_messages.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.contrib.auth import validators from django.db import migrations, models from django.utils import six diff --git a/django/contrib/auth/migrations/0008_alter_user_username_max_length.py b/django/contrib/auth/migrations/0008_alter_user_username_max_length.py index 6349ad10c4dc..15b9cf8c9476 100644 --- a/django/contrib/auth/migrations/0008_alter_user_username_max_length.py +++ b/django/contrib/auth/migrations/0008_alter_user_username_max_length.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.contrib.auth import validators from django.db import migrations, models from django.utils import six diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index d91412eb5c11..2e9f3682d7b8 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib import auth from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.signals import user_logged_in diff --git a/django/contrib/auth/password_validation.py b/django/contrib/auth/password_validation.py index 4ff2c409ec24..d802a5f5fde3 100644 --- a/django/contrib/auth/password_validation.py +++ b/django/contrib/auth/password_validation.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import gzip import os import re diff --git a/django/contrib/contenttypes/admin.py b/django/contrib/contenttypes/admin.py index f15f66b2e1e8..063c37698a3f 100644 --- a/django/contrib/contenttypes/admin.py +++ b/django/contrib/contenttypes/admin.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from functools import partial from django.contrib.admin.checks import InlineModelAdminChecks diff --git a/django/contrib/contenttypes/checks.py b/django/contrib/contenttypes/checks.py index 43a2fb7a7aee..2355a5e943df 100644 --- a/django/contrib/contenttypes/checks.py +++ b/django/contrib/contenttypes/checks.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from itertools import chain from django.apps import apps diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py index a273cf034798..83e38af4415e 100644 --- a/django/contrib/contenttypes/fields.py +++ b/django/contrib/contenttypes/fields.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from collections import defaultdict from django.contrib.contenttypes.models import ContentType diff --git a/django/contrib/contenttypes/forms.py b/django/contrib/contenttypes/forms.py index ff8a60114cca..8e88c9a1cd72 100644 --- a/django/contrib/contenttypes/forms.py +++ b/django/contrib/contenttypes/forms.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.contenttypes.models import ContentType from django.db import models from django.forms import ModelForm, modelformset_factory diff --git a/django/contrib/contenttypes/migrations/0001_initial.py b/django/contrib/contenttypes/migrations/0001_initial.py index 68190b2a2b37..9bafd098e94e 100644 --- a/django/contrib/contenttypes/migrations/0001_initial.py +++ b/django/contrib/contenttypes/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.contenttypes.models from django.db import migrations, models diff --git a/django/contrib/contenttypes/migrations/0002_remove_content_type_name.py b/django/contrib/contenttypes/migrations/0002_remove_content_type_name.py index 8bd8032b41ec..c88e603147fd 100644 --- a/django/contrib/contenttypes/migrations/0002_remove_content_type_name.py +++ b/django/contrib/contenttypes/migrations/0002_remove_content_type_name.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/django/contrib/contenttypes/models.py b/django/contrib/contenttypes/models.py index 26a3db17c902..6db6831fbc67 100644 --- a/django/contrib/contenttypes/models.py +++ b/django/contrib/contenttypes/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from collections import defaultdict from django.apps import apps diff --git a/django/contrib/contenttypes/views.py b/django/contrib/contenttypes/views.py index 3957788d0e6e..50c07d110926 100644 --- a/django/contrib/contenttypes/views.py +++ b/django/contrib/contenttypes/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import http from django.apps import apps from django.contrib.contenttypes.models import ContentType diff --git a/django/contrib/flatpages/migrations/0001_initial.py b/django/contrib/flatpages/migrations/0001_initial.py index 13e417b41b55..b385ca5fd44b 100644 --- a/django/contrib/flatpages/migrations/0001_initial.py +++ b/django/contrib/flatpages/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/django/contrib/flatpages/models.py b/django/contrib/flatpages/models.py index add1fdd879ae..02c93d657d76 100644 --- a/django/contrib/flatpages/models.py +++ b/django/contrib/flatpages/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.sites.models import Site from django.db import models from django.urls import get_script_prefix diff --git a/django/contrib/gis/db/backends/postgis/adapter.py b/django/contrib/gis/db/backends/postgis/adapter.py index 9e107db6d6bd..c94268811b5a 100644 --- a/django/contrib/gis/db/backends/postgis/adapter.py +++ b/django/contrib/gis/db/backends/postgis/adapter.py @@ -1,8 +1,6 @@ """ This object provides quoting for GEOS geometries into PostgreSQL/PostGIS. """ -from __future__ import unicode_literals - from psycopg2 import Binary from psycopg2.extensions import ISQLQuote diff --git a/django/contrib/gis/db/models/lookups.py b/django/contrib/gis/db/models/lookups.py index 8d4e8229e763..b707a9cbff7d 100644 --- a/django/contrib/gis/db/models/lookups.py +++ b/django/contrib/gis/db/models/lookups.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re from django.core.exceptions import FieldDoesNotExist diff --git a/django/contrib/gis/db/models/sql/conversion.py b/django/contrib/gis/db/models/sql/conversion.py index acc277ed6247..054628d481c8 100644 --- a/django/contrib/gis/db/models/sql/conversion.py +++ b/django/contrib/gis/db/models/sql/conversion.py @@ -2,8 +2,6 @@ This module holds simple classes to convert geospatial values from the database. """ -from __future__ import unicode_literals - from decimal import Decimal from django.contrib.gis.db.models.fields import GeoSelectFormatMixin diff --git a/django/contrib/gis/feeds.py b/django/contrib/gis/feeds.py index 1e12b4d64cc2..4240968f19b3 100644 --- a/django/contrib/gis/feeds.py +++ b/django/contrib/gis/feeds.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.syndication.views import Feed as BaseFeed from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed diff --git a/django/contrib/gis/forms/fields.py b/django/contrib/gis/forms/fields.py index 4ae56de88bff..ef0f4a9bee41 100644 --- a/django/contrib/gis/forms/fields.py +++ b/django/contrib/gis/forms/fields.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.contrib.gis.geos import GEOSException, GEOSGeometry from django.utils.translation import ugettext_lazy as _ diff --git a/django/contrib/gis/forms/widgets.py b/django/contrib/gis/forms/widgets.py index e331e1844db3..2e7e530cc2ee 100644 --- a/django/contrib/gis/forms/widgets.py +++ b/django/contrib/gis/forms/widgets.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import logging from django.conf import settings diff --git a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py index 7d7292b7b8b3..79a73b5d885b 100644 --- a/django/contrib/gis/gdal/libgdal.py +++ b/django/contrib/gis/gdal/libgdal.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import logging import os import re diff --git a/django/contrib/gis/geos/geometry.py b/django/contrib/gis/geos/geometry.py index cf5886dc07e0..deadbfaaf279 100644 --- a/django/contrib/gis/geos/geometry.py +++ b/django/contrib/gis/geos/geometry.py @@ -2,8 +2,6 @@ This module contains the 'base' GEOSGeometry object -- all GEOS Geometries inherit from this object. """ -from __future__ import unicode_literals - import json from ctypes import addressof, byref, c_double diff --git a/django/contrib/gis/serializers/geojson.py b/django/contrib/gis/serializers/geojson.py index dcdf153c3623..1b50ee30d83a 100644 --- a/django/contrib/gis/serializers/geojson.py +++ b/django/contrib/gis/serializers/geojson.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.gis.gdal import HAS_GDAL from django.core.serializers.base import SerializerDoesNotExist from django.core.serializers.json import Serializer as JSONSerializer diff --git a/django/contrib/gis/sitemaps/views.py b/django/contrib/gis/sitemaps/views.py index 948c3ec36c17..add465237375 100644 --- a/django/contrib/gis/sitemaps/views.py +++ b/django/contrib/gis/sitemaps/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import apps from django.contrib.gis.db.models.fields import GeometryField from django.contrib.gis.db.models.functions import AsKML, Transform diff --git a/django/contrib/gis/views.py b/django/contrib/gis/views.py index 5d05d3a057f8..db0fa3d53d4a 100644 --- a/django/contrib/gis/views.py +++ b/django/contrib/gis/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.http import Http404 from django.utils.translation import ugettext as _ diff --git a/django/contrib/humanize/templatetags/humanize.py b/django/contrib/humanize/templatetags/humanize.py index d7d8f2f89731..5ba9897018e3 100644 --- a/django/contrib/humanize/templatetags/humanize.py +++ b/django/contrib/humanize/templatetags/humanize.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import re from datetime import date, datetime from decimal import Decimal diff --git a/django/contrib/messages/storage/base.py b/django/contrib/messages/storage/base.py index a2e54486c736..2273e9720787 100644 --- a/django/contrib/messages/storage/base.py +++ b/django/contrib/messages/storage/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf import settings from django.contrib.messages import constants, utils from django.utils.encoding import force_text, python_2_unicode_compatible diff --git a/django/contrib/postgres/indexes.py b/django/contrib/postgres/indexes.py index 185ea7435c47..2edec371f4fd 100644 --- a/django/contrib/postgres/indexes.py +++ b/django/contrib/postgres/indexes.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models import Index __all__ = ['BrinIndex', 'GinIndex'] diff --git a/django/contrib/postgres/utils.py b/django/contrib/postgres/utils.py index a2bbb72f369d..a87d519477b0 100644 --- a/django/contrib/postgres/utils.py +++ b/django/contrib/postgres/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import ValidationError from django.utils.functional import SimpleLazyObject from django.utils.text import format_lazy diff --git a/django/contrib/redirects/middleware.py b/django/contrib/redirects/middleware.py index f5c9f8558841..317dca3fd25f 100644 --- a/django/contrib/redirects/middleware.py +++ b/django/contrib/redirects/middleware.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import http from django.apps import apps from django.conf import settings diff --git a/django/contrib/redirects/migrations/0001_initial.py b/django/contrib/redirects/migrations/0001_initial.py index 905ec266aa56..fb0462f52cf1 100644 --- a/django/contrib/redirects/migrations/0001_initial.py +++ b/django/contrib/redirects/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/django/contrib/sessions/backends/base.py b/django/contrib/sessions/backends/base.py index 40c557ba0b7c..615eea45d2a9 100644 --- a/django/contrib/sessions/backends/base.py +++ b/django/contrib/sessions/backends/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import base64 import logging import string diff --git a/django/contrib/sessions/base_session.py b/django/contrib/sessions/base_session.py index 5fed0cd2d104..bd8e957aea15 100644 --- a/django/contrib/sessions/base_session.py +++ b/django/contrib/sessions/base_session.py @@ -2,8 +2,6 @@ This module allows importing AbstractBaseSession even when django.contrib.sessions is not in INSTALLED_APPS. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ diff --git a/django/contrib/sessions/migrations/0001_initial.py b/django/contrib/sessions/migrations/0001_initial.py index e9fd627b7989..39eaa6db4118 100644 --- a/django/contrib/sessions/migrations/0001_initial.py +++ b/django/contrib/sessions/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.sessions.models from django.db import migrations, models diff --git a/django/contrib/sessions/models.py b/django/contrib/sessions/models.py index 3ee3ce73d36c..a744267927cc 100644 --- a/django/contrib/sessions/models.py +++ b/django/contrib/sessions/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.sessions.base_session import ( AbstractBaseSession, BaseSessionManager, ) diff --git a/django/contrib/sites/managers.py b/django/contrib/sites/managers.py index a3a0f07fc353..52f91a51ea39 100644 --- a/django/contrib/sites/managers.py +++ b/django/contrib/sites/managers.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.conf import settings from django.core import checks from django.core.exceptions import FieldDoesNotExist diff --git a/django/contrib/sites/migrations/0001_initial.py b/django/contrib/sites/migrations/0001_initial.py index b1803682ae5c..a7639869fc98 100644 --- a/django/contrib/sites/migrations/0001_initial.py +++ b/django/contrib/sites/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.sites.models from django.contrib.sites.models import _simple_domain_name_validator from django.db import migrations, models diff --git a/django/contrib/sites/migrations/0002_alter_domain_unique.py b/django/contrib/sites/migrations/0002_alter_domain_unique.py index 468718cde3ce..6a26ebcde655 100644 --- a/django/contrib/sites/migrations/0002_alter_domain_unique.py +++ b/django/contrib/sites/migrations/0002_alter_domain_unique.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.sites.models from django.db import migrations, models diff --git a/django/contrib/sites/models.py b/django/contrib/sites/models.py index 7b237b087387..9f849fa5591f 100644 --- a/django/contrib/sites/models.py +++ b/django/contrib/sites/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import string from django.core.exceptions import ImproperlyConfigured, ValidationError diff --git a/django/contrib/sites/requests.py b/django/contrib/sites/requests.py index 233d8409457a..81f2ba42d6f3 100644 --- a/django/contrib/sites/requests.py +++ b/django/contrib/sites/requests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.utils.encoding import python_2_unicode_compatible diff --git a/django/contrib/sites/shortcuts.py b/django/contrib/sites/shortcuts.py index 12471dc9a596..7991c618284d 100644 --- a/django/contrib/sites/shortcuts.py +++ b/django/contrib/sites/shortcuts.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import apps diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py index 801113e3c4d1..fac96e5bf471 100644 --- a/django/contrib/staticfiles/management/commands/collectstatic.py +++ b/django/contrib/staticfiles/management/commands/collectstatic.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from collections import OrderedDict diff --git a/django/contrib/staticfiles/management/commands/findstatic.py b/django/contrib/staticfiles/management/commands/findstatic.py index b594ebcab209..992dae17697a 100644 --- a/django/contrib/staticfiles/management/commands/findstatic.py +++ b/django/contrib/staticfiles/management/commands/findstatic.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from django.contrib.staticfiles import finders diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py index da0d2004e6be..b033243eccff 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import hashlib import json import os diff --git a/django/contrib/syndication/views.py b/django/contrib/syndication/views.py index 1e3c08d313eb..fa9c5e7753fe 100644 --- a/django/contrib/syndication/views.py +++ b/django/contrib/syndication/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from calendar import timegm from django.conf import settings diff --git a/django/core/cache/backends/base.py b/django/core/cache/backends/base.py index 9cbfe0be1d07..856316b4004d 100644 --- a/django/core/cache/backends/base.py +++ b/django/core/cache/backends/base.py @@ -1,6 +1,4 @@ "Base Cache class." -from __future__ import unicode_literals - import time import warnings diff --git a/django/core/cache/utils.py b/django/core/cache/utils.py index c40e4eba0cdd..84676b9237bd 100644 --- a/django/core/cache/utils.py +++ b/django/core/cache/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import hashlib from django.utils.encoding import force_bytes diff --git a/django/core/checks/__init__.py b/django/core/checks/__init__.py index f2194a3fc9fb..8ef3f5db90e4 100644 --- a/django/core/checks/__init__.py +++ b/django/core/checks/__init__.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from .messages import ( CRITICAL, DEBUG, ERROR, INFO, WARNING, CheckMessage, Critical, Debug, Error, Info, Warning, diff --git a/django/core/checks/caches.py b/django/core/checks/caches.py index 4a4141777d2f..0994a5b0e8a0 100644 --- a/django/core/checks/caches.py +++ b/django/core/checks/caches.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf import settings from django.core.cache import DEFAULT_CACHE_ALIAS diff --git a/django/core/checks/messages.py b/django/core/checks/messages.py index 345ebec1e12a..f1de41a63c87 100644 --- a/django/core/checks/messages.py +++ b/django/core/checks/messages.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.utils.encoding import force_str, python_2_unicode_compatible # Levels diff --git a/django/core/checks/model_checks.py b/django/core/checks/model_checks.py index 0c12f9b96a63..a8b565266247 100644 --- a/django/core/checks/model_checks.py +++ b/django/core/checks/model_checks.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import inspect import types from itertools import chain diff --git a/django/core/checks/registry.py b/django/core/checks/registry.py index 292e0cb73b24..4a2b358dc89b 100644 --- a/django/core/checks/registry.py +++ b/django/core/checks/registry.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from itertools import chain from django.utils.itercompat import is_iterable diff --git a/django/core/checks/templates.py b/django/core/checks/templates.py index 098371740e1d..bf526c871ebc 100644 --- a/django/core/checks/templates.py +++ b/django/core/checks/templates.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import copy from django.conf import settings diff --git a/django/core/checks/urls.py b/django/core/checks/urls.py index e950cb563755..d721bc901f53 100644 --- a/django/core/checks/urls.py +++ b/django/core/checks/urls.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from collections import Counter from django.conf import settings diff --git a/django/core/files/base.py b/django/core/files/base.py index be889c9bc41a..7499629459ba 100644 --- a/django/core/files/base.py +++ b/django/core/files/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from io import BytesIO, StringIO, UnsupportedOperation diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py index 05b431d05a76..748477c0fc3f 100644 --- a/django/core/files/uploadhandler.py +++ b/django/core/files/uploadhandler.py @@ -2,8 +2,6 @@ Base file upload handler classes, and the built-in concrete subclasses """ -from __future__ import unicode_literals - from io import BytesIO from django.conf import settings diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 1d53fa9d94f7..b37716b62c74 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import logging import types diff --git a/django/core/handlers/exception.py b/django/core/handlers/exception.py index ab859405f389..5e489f64d32c 100644 --- a/django/core/handlers/exception.py +++ b/django/core/handlers/exception.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import logging import sys from functools import wraps diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index 4486754d4186..538373cd8d30 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import cgi import codecs import re diff --git a/django/core/mail/__init__.py b/django/core/mail/__init__.py index 5741f8a82984..23beae0cce55 100644 --- a/django/core/mail/__init__.py +++ b/django/core/mail/__init__.py @@ -1,8 +1,6 @@ """ Tools for sending email. """ -from __future__ import unicode_literals - from django.conf import settings # Imported for backwards compatibility and for the sake # of a cleaner namespace. These symbols used to be in diff --git a/django/core/mail/message.py b/django/core/mail/message.py index 3cebbaf9d245..2c68e8280918 100644 --- a/django/core/mail/message.py +++ b/django/core/mail/message.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import mimetypes import os import random diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index fdc1af2aa2cf..6b89fff3518f 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import pkgutil import sys diff --git a/django/core/management/base.py b/django/core/management/base.py index cdc673a479af..192d529ef04b 100644 --- a/django/core/management/base.py +++ b/django/core/management/base.py @@ -1,10 +1,7 @@ -# -*- coding: utf-8 -*- """ Base classes for writing management commands (named commands which can be executed through ``django-admin`` or ``manage.py``). """ -from __future__ import unicode_literals - import os import sys from argparse import ArgumentParser diff --git a/django/core/management/commands/check.py b/django/core/management/commands/check.py index aa9685caa9a3..e119960f441c 100644 --- a/django/core/management/commands/check.py +++ b/django/core/management/commands/check.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.apps import apps from django.core import checks from django.core.checks.registry import registry diff --git a/django/core/management/commands/compilemessages.py b/django/core/management/commands/compilemessages.py index 874fea4b5a91..05fb9e5cfc60 100644 --- a/django/core/management/commands/compilemessages.py +++ b/django/core/management/commands/compilemessages.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import codecs import glob import os diff --git a/django/core/management/commands/flush.py b/django/core/management/commands/flush.py index 68226355b87f..dbe870f322be 100644 --- a/django/core/management/commands/flush.py +++ b/django/core/management/commands/flush.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys from importlib import import_module diff --git a/django/core/management/commands/inspectdb.py b/django/core/management/commands/inspectdb.py index 69721b1283a2..09939f28dabe 100644 --- a/django/core/management/commands/inspectdb.py +++ b/django/core/management/commands/inspectdb.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import keyword import re from collections import OrderedDict @@ -56,8 +54,6 @@ def strip_prefix(s): "Django to create, modify, and delete the table" ) yield "# Feel free to rename the models, but don't rename db_table values or field names." - yield "from __future__ import unicode_literals" - yield '' yield 'from %s import models' % self.db_module known_models = [] tables_to_introspect = options['table'] or connection.introspection.table_names(cursor) diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py index d824011a03bf..4b621205e65c 100644 --- a/django/core/management/commands/loaddata.py +++ b/django/core/management/commands/loaddata.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import glob import gzip import os diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py index 527472e1c97b..1597f9347e79 100644 --- a/django/core/management/commands/makemessages.py +++ b/django/core/management/commands/makemessages.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import fnmatch import glob import io diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py index ea9e7cd46bff..79ff872db025 100644 --- a/django/core/management/commands/migrate.py +++ b/django/core/management/commands/migrate.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import time from collections import OrderedDict from importlib import import_module diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py index 0bfbd5b68e15..62370072c502 100644 --- a/django/core/management/commands/runserver.py +++ b/django/core/management/commands/runserver.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import errno import os import re diff --git a/django/core/management/commands/showmigrations.py b/django/core/management/commands/showmigrations.py index 890839b15097..1e20ec1745cf 100644 --- a/django/core/management/commands/showmigrations.py +++ b/django/core/management/commands/showmigrations.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core.management.base import BaseCommand, CommandError from django.db import DEFAULT_DB_ALIAS, connections from django.db.migrations.loader import MigrationLoader diff --git a/django/core/management/commands/sqlflush.py b/django/core/management/commands/sqlflush.py index f0c7e3027071..da7d6b00e9a3 100644 --- a/django/core/management/commands/sqlflush.py +++ b/django/core/management/commands/sqlflush.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.management.base import BaseCommand from django.core.management.sql import sql_flush from django.db import DEFAULT_DB_ALIAS, connections diff --git a/django/core/management/commands/sqlmigrate.py b/django/core/management/commands/sqlmigrate.py index 5047d900c176..f6c67a5807e5 100644 --- a/django/core/management/commands/sqlmigrate.py +++ b/django/core/management/commands/sqlmigrate.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core.management.base import BaseCommand, CommandError from django.db import DEFAULT_DB_ALIAS, connections from django.db.migrations.executor import MigrationExecutor diff --git a/django/core/management/commands/sqlsequencereset.py b/django/core/management/commands/sqlsequencereset.py index 6ac6e10d605d..788a923c72ca 100644 --- a/django/core/management/commands/sqlsequencereset.py +++ b/django/core/management/commands/sqlsequencereset.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.management.base import AppCommand from django.db import DEFAULT_DB_ALIAS, connections diff --git a/django/core/management/sql.py b/django/core/management/sql.py index c72519f30a3c..37830259003d 100644 --- a/django/core/management/sql.py +++ b/django/core/management/sql.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import apps from django.db import models diff --git a/django/core/management/templates.py b/django/core/management/templates.py index ee6e284a63a9..805da991482d 100644 --- a/django/core/management/templates.py +++ b/django/core/management/templates.py @@ -113,8 +113,6 @@ def handle(self, app_or_project, name, target=None, **options): camel_case_name: camel_case_value, 'docs_version': get_docs_version(), 'django_version': django.__version__, - 'unicode_literals': '' if six.PY3 else '# -*- coding: utf-8 -*-\n' - 'from __future__ import unicode_literals\n\n', }), autoescape=False) # Setup a stub settings environment for template rendering diff --git a/django/core/management/utils.py b/django/core/management/utils.py index 7ea005a6f0b4..0fb8b0d25f71 100644 --- a/django/core/management/utils.py +++ b/django/core/management/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import sys from subprocess import PIPE, Popen diff --git a/django/core/serializers/json.py b/django/core/serializers/json.py index 9da8993ee649..b335605785f8 100644 --- a/django/core/serializers/json.py +++ b/django/core/serializers/json.py @@ -2,9 +2,6 @@ Serialize data to/from JSON """ -# Avoid shadowing the standard library json module -from __future__ import absolute_import, unicode_literals - import datetime import decimal import json diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py index 7a61999f15f1..a0cea1429731 100644 --- a/django/core/serializers/python.py +++ b/django/core/serializers/python.py @@ -3,8 +3,6 @@ and from basic Python data types (lists, dicts, strings, etc.). Useful as a basis for other serializers. """ -from __future__ import unicode_literals - from collections import OrderedDict from django.apps import apps diff --git a/django/core/serializers/xml_serializer.py b/django/core/serializers/xml_serializer.py index 5e151108fcf7..e209cb286a65 100644 --- a/django/core/serializers/xml_serializer.py +++ b/django/core/serializers/xml_serializer.py @@ -2,8 +2,6 @@ XML serializer. """ -from __future__ import unicode_literals - from collections import OrderedDict from xml.dom import pulldom from xml.sax import handler diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py index 3928d8c3ff67..e27378e7a5dd 100644 --- a/django/core/servers/basehttp.py +++ b/django/core/servers/basehttp.py @@ -7,8 +7,6 @@ been reviewed for security issues. DON'T USE IT FOR PRODUCTION USE! """ -from __future__ import unicode_literals - import logging import socket import sys diff --git a/django/core/signing.py b/django/core/signing.py index 22b438315b80..f578da6f99c4 100644 --- a/django/core/signing.py +++ b/django/core/signing.py @@ -33,8 +33,6 @@ These functions make use of all of them. """ -from __future__ import unicode_literals - import base64 import datetime import json diff --git a/django/core/validators.py b/django/core/validators.py index 3f777254f481..221f3e0934c7 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import re diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index a2416c82cddc..3d6cb7191533 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -4,8 +4,6 @@ Requires mysqlclient: https://pypi.python.org/pypi/mysqlclient/ MySQLdb is supported for Python 2 only: http://sourceforge.net/projects/mysql-python """ -from __future__ import unicode_literals - import re import sys diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py index 6a55d7a88f75..4edc9272a964 100644 --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import uuid from django.conf import settings diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index cf17f9fa6c73..317599253d39 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -3,8 +3,6 @@ Requires cx_Oracle: http://cx-oracle.sourceforge.net/ """ -from __future__ import unicode_literals - import datetime import decimal import os diff --git a/django/db/backends/oracle/operations.py b/django/db/backends/oracle/operations.py index 9c382895b713..fd9d2d11795c 100644 --- a/django/db/backends/oracle/operations.py +++ b/django/db/backends/oracle/operations.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import re import uuid diff --git a/django/db/backends/postgresql/introspection.py b/django/db/backends/postgresql/introspection.py index e9d7d0225f23..34150c6f482e 100644 --- a/django/db/backends/postgresql/introspection.py +++ b/django/db/backends/postgresql/introspection.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import warnings from django.db.backends.base.introspection import ( diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index 20f60ab5ae69..542fe223cb96 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from psycopg2.extras import Inet from django.conf import settings diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 252293d9cca3..0cd0516a0aba 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -4,8 +4,6 @@ Works with either the pysqlite2 module or the sqlite3 module in the standard library. """ -from __future__ import unicode_literals - import decimal import re import warnings diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py index 4f8d3d5742b1..43a29b78f5df 100644 --- a/django/db/backends/sqlite3/features.py +++ b/django/db/backends/sqlite3/features.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import utils from django.db.backends.base.features import BaseDatabaseFeatures from django.utils import six diff --git a/django/db/backends/sqlite3/operations.py b/django/db/backends/sqlite3/operations.py index 1ab20767c452..529db944519b 100644 --- a/django/db/backends/sqlite3/operations.py +++ b/django/db/backends/sqlite3/operations.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import uuid diff --git a/django/db/backends/utils.py b/django/db/backends/utils.py index 73f1dbb6908e..b72840e989e1 100644 --- a/django/db/backends/utils.py +++ b/django/db/backends/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import decimal import hashlib diff --git a/django/db/migrations/autodetector.py b/django/db/migrations/autodetector.py index b2ee53917f18..84ecf90b9eba 100644 --- a/django/db/migrations/autodetector.py +++ b/django/db/migrations/autodetector.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import functools import re from itertools import chain diff --git a/django/db/migrations/exceptions.py b/django/db/migrations/exceptions.py index 7b10bd0394e5..d3da26940f11 100644 --- a/django/db/migrations/exceptions.py +++ b/django/db/migrations/exceptions.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.utils import DatabaseError from django.utils.encoding import python_2_unicode_compatible diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py index 1a0b6f6322c1..a590a0aca3f4 100644 --- a/django/db/migrations/executor.py +++ b/django/db/migrations/executor.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps.registry import apps as global_apps from django.db import migrations, router diff --git a/django/db/migrations/graph.py b/django/db/migrations/graph.py index 1a7a70322f81..83422361c4bd 100644 --- a/django/db/migrations/graph.py +++ b/django/db/migrations/graph.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys import warnings from collections import deque diff --git a/django/db/migrations/loader.py b/django/db/migrations/loader.py index bbbde07a9843..8a42d96e9aa9 100644 --- a/django/db/migrations/loader.py +++ b/django/db/migrations/loader.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import sys from importlib import import_module diff --git a/django/db/migrations/migration.py b/django/db/migrations/migration.py index 732dcb82e8ae..d8b993f72528 100644 --- a/django/db/migrations/migration.py +++ b/django/db/migrations/migration.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.transaction import atomic from django.utils.encoding import python_2_unicode_compatible diff --git a/django/db/migrations/operations/base.py b/django/db/migrations/operations/base.py index 95829f716a59..f5acf9f3a8e8 100644 --- a/django/db/migrations/operations/base.py +++ b/django/db/migrations/operations/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import router diff --git a/django/db/migrations/operations/fields.py b/django/db/migrations/operations/fields.py index 4ce465a0c36b..431f87d7e677 100644 --- a/django/db/migrations/operations/fields.py +++ b/django/db/migrations/operations/fields.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models.fields import NOT_PROVIDED from django.utils.functional import cached_property diff --git a/django/db/migrations/operations/models.py b/django/db/migrations/operations/models.py index 16cadc7a2fbc..783cfcc5198b 100644 --- a/django/db/migrations/operations/models.py +++ b/django/db/migrations/operations/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.db.migrations.operations.base import Operation from django.db.migrations.state import ModelState diff --git a/django/db/migrations/operations/special.py b/django/db/migrations/operations/special.py index 66c5a3af278f..706e691352dd 100644 --- a/django/db/migrations/operations/special.py +++ b/django/db/migrations/operations/special.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import router from .base import Operation diff --git a/django/db/migrations/optimizer.py b/django/db/migrations/optimizer.py index f1d51c75ba6c..ca7f9db60090 100644 --- a/django/db/migrations/optimizer.py +++ b/django/db/migrations/optimizer.py @@ -1,6 +1,3 @@ -from __future__ import unicode_literals - - class MigrationOptimizer(object): """ Powers the optimization process, where you provide a list of Operations diff --git a/django/db/migrations/questioner.py b/django/db/migrations/questioner.py index df08508a109f..d508ee9b7899 100644 --- a/django/db/migrations/questioner.py +++ b/django/db/migrations/questioner.py @@ -1,5 +1,3 @@ -from __future__ import print_function, unicode_literals - import importlib import os import sys diff --git a/django/db/migrations/recorder.py b/django/db/migrations/recorder.py index 2dcbe6c0426a..0dac81223df3 100644 --- a/django/db/migrations/recorder.py +++ b/django/db/migrations/recorder.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps.registry import Apps from django.db import models from django.db.utils import DatabaseError diff --git a/django/db/migrations/serializer.py b/django/db/migrations/serializer.py index 8f32fb986b43..b273097da4ea 100644 --- a/django/db/migrations/serializer.py +++ b/django/db/migrations/serializer.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import collections import datetime import decimal diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py index 98724337d857..c88663ff3a72 100644 --- a/django/db/migrations/state.py +++ b/django/db/migrations/state.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import copy from collections import OrderedDict from contextlib import contextmanager diff --git a/django/db/migrations/writer.py b/django/db/migrations/writer.py index df70f61eae87..ae51a1f0d9d5 100644 --- a/django/db/migrations/writer.py +++ b/django/db/migrations/writer.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import re from importlib import import_module @@ -294,9 +292,7 @@ def serialize(cls, value): MIGRATION_TEMPLATE = """\ -# -*- coding: utf-8 -*- # Generated by Django %(version)s on %(timestamp)s -from __future__ import unicode_literals %(imports)s diff --git a/django/db/models/base.py b/django/db/models/base.py index 7ecfc06284af..2fbcf46a41d5 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import copy import inspect import warnings diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index cf3aab481582..ddfcbb4f394a 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import collections import copy import datetime diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 256441c6a2bb..aec362e84af5 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import inspect from functools import partial diff --git a/django/db/models/fields/related_descriptors.py b/django/db/models/fields/related_descriptors.py index d8d57a89ede5..696dc6f74968 100644 --- a/django/db/models/fields/related_descriptors.py +++ b/django/db/models/fields/related_descriptors.py @@ -63,8 +63,6 @@ class Child(Model): ``ReverseManyToManyDescriptor``, use ``ManyToManyDescriptor`` instead. """ -from __future__ import unicode_literals - from operator import attrgetter from django.db import connections, router, transaction diff --git a/django/db/models/fields/reverse_related.py b/django/db/models/fields/reverse_related.py index 82d9af64e711..1b706ba6eaeb 100644 --- a/django/db/models/fields/reverse_related.py +++ b/django/db/models/fields/reverse_related.py @@ -9,8 +9,6 @@ they're the closest concept currently available. """ -from __future__ import unicode_literals - from django.core import exceptions from django.utils.encoding import force_text from django.utils.functional import cached_property diff --git a/django/db/models/functions/datetime.py b/django/db/models/functions/datetime.py index 7b137eabef49..269b829e43e3 100644 --- a/django/db/models/functions/datetime.py +++ b/django/db/models/functions/datetime.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from datetime import datetime from django.conf import settings diff --git a/django/db/models/indexes.py b/django/db/models/indexes.py index 59221312920e..c296f221636c 100644 --- a/django/db/models/indexes.py +++ b/django/db/models/indexes.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import hashlib from django.utils.encoding import force_bytes diff --git a/django/db/models/options.py b/django/db/models/options.py index 19a0de8dfd5c..943de0dd910a 100644 --- a/django/db/models/options.py +++ b/django/db/models/options.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import copy import warnings from bisect import bisect diff --git a/django/db/models/query_utils.py b/django/db/models/query_utils.py index fa245fcf073c..112c9586d071 100644 --- a/django/db/models/query_utils.py +++ b/django/db/models/query_utils.py @@ -5,8 +5,6 @@ large and/or so that they can be used by other modules without getting into circular import difficulties. """ -from __future__ import unicode_literals - import inspect from collections import namedtuple diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py index a1063b2b057b..fa141b35ef93 100644 --- a/django/forms/boundfield.py +++ b/django/forms/boundfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import warnings diff --git a/django/forms/fields.py b/django/forms/fields.py index 74cc3a6552db..65824fbd97d0 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -2,8 +2,6 @@ Field classes. """ -from __future__ import unicode_literals - import copy import datetime import itertools diff --git a/django/forms/forms.py b/django/forms/forms.py index 804434951731..0f1fbef6c854 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -2,8 +2,6 @@ Form classes """ -from __future__ import unicode_literals - import copy from collections import OrderedDict diff --git a/django/forms/formsets.py b/django/forms/formsets.py index 7d9e84113fc2..1e5ec8ee6be0 100644 --- a/django/forms/formsets.py +++ b/django/forms/formsets.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import ValidationError from django.forms import Form from django.forms.fields import BooleanField, IntegerField diff --git a/django/forms/models.py b/django/forms/models.py index a0f3ff53b318..38f6812ba0e1 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -3,8 +3,6 @@ and database field objects. """ -from __future__ import unicode_literals - from collections import OrderedDict from itertools import chain diff --git a/django/forms/utils.py b/django/forms/utils.py index 88086b2c64bb..3e6991ea32f5 100644 --- a/django/forms/utils.py +++ b/django/forms/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import json import sys diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 71f408e783e7..3ddad40ebb04 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -2,8 +2,6 @@ HTML Widget classes """ -from __future__ import unicode_literals - import copy import datetime import re diff --git a/django/http/cookie.py b/django/http/cookie.py index 1f10eff95a74..49048787eb9c 100644 --- a/django/http/cookie.py +++ b/django/http/cookie.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys from django.utils import six diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py index 616185f0217c..ecfbdf72522f 100644 --- a/django/http/multipartparser.py +++ b/django/http/multipartparser.py @@ -4,8 +4,6 @@ Exposes one class, ``MultiPartParser``, which feeds chunks of uploaded data to file upload handlers for processing. """ -from __future__ import unicode_literals - import base64 import binascii import cgi diff --git a/django/http/request.py b/django/http/request.py index 9ffcd23fbd0a..559081b50c43 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import copy import re import sys diff --git a/django/http/response.py b/django/http/response.py index e9e283e84064..597d68860277 100644 --- a/django/http/response.py +++ b/django/http/response.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import json import re diff --git a/django/middleware/csrf.py b/django/middleware/csrf.py index d7359e491219..14d3537f2915 100644 --- a/django/middleware/csrf.py +++ b/django/middleware/csrf.py @@ -4,8 +4,6 @@ This module provides a middleware that implements protection against request forgeries from other sites. """ -from __future__ import unicode_literals - import logging import re import string diff --git a/django/template/backends/base.py b/django/template/backends/base.py index 00b5fc4b2bc4..9f48fbfdca8b 100644 --- a/django/template/backends/base.py +++ b/django/template/backends/base.py @@ -1,6 +1,3 @@ -# Since this package contains a "django" module, this is required on Python 2. -from __future__ import absolute_import - from django.core.exceptions import ( ImproperlyConfigured, SuspiciousFileOperation, ) diff --git a/django/template/backends/django.py b/django/template/backends/django.py index afe1a7cd2313..7ae8141251e7 100644 --- a/django/template/backends/django.py +++ b/django/template/backends/django.py @@ -1,6 +1,3 @@ -# Since this package contains a "django" module, this is required on Python 2. -from __future__ import absolute_import - import sys from importlib import import_module from pkgutil import walk_packages diff --git a/django/template/backends/dummy.py b/django/template/backends/dummy.py index 1d6f446dec64..015cb8bda061 100644 --- a/django/template/backends/dummy.py +++ b/django/template/backends/dummy.py @@ -1,6 +1,3 @@ -# Since this package contains a "django" module, this is required on Python 2. -from __future__ import absolute_import - import errno import io import string diff --git a/django/template/backends/jinja2.py b/django/template/backends/jinja2.py index cf08858db940..2497df1b8414 100644 --- a/django/template/backends/jinja2.py +++ b/django/template/backends/jinja2.py @@ -1,6 +1,3 @@ -# Since this package contains a "django" module, this is required on Python 2. -from __future__ import absolute_import - import sys import jinja2 diff --git a/django/template/backends/utils.py b/django/template/backends/utils.py index 881d83acf27d..8147bb49889f 100644 --- a/django/template/backends/utils.py +++ b/django/template/backends/utils.py @@ -1,6 +1,3 @@ -# Since this package contains a "django" module, this is required on Python 2. -from __future__ import absolute_import - from django.middleware.csrf import get_token from django.utils.functional import lazy from django.utils.html import format_html diff --git a/django/template/base.py b/django/template/base.py index af3b6c5371e8..3aa7941879e3 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -49,8 +49,6 @@ '' """ -from __future__ import unicode_literals - import inspect import logging import re diff --git a/django/template/context_processors.py b/django/template/context_processors.py index da5276ce44bf..85cd3eaa5f1a 100644 --- a/django/template/context_processors.py +++ b/django/template/context_processors.py @@ -7,8 +7,6 @@ of a DjangoTemplates backend and used by RequestContext. """ -from __future__ import unicode_literals - import itertools from django.conf import settings diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index e35415bdf754..fc249953ea1b 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -1,6 +1,4 @@ """Default variable filters.""" -from __future__ import unicode_literals - import random as random_module import re from decimal import ROUND_HALF_UP, Context, Decimal, InvalidOperation diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index d35e80cfa95b..2c455aff7b6e 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -1,6 +1,4 @@ """Default tags used by the template system, available to all templates.""" -from __future__ import unicode_literals - import re import sys import warnings diff --git a/django/templatetags/cache.py b/django/templatetags/cache.py index 1b49bca1b6e4..3af6dc4df67f 100644 --- a/django/templatetags/cache.py +++ b/django/templatetags/cache.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.cache import InvalidCacheBackendError, caches from django.core.cache.utils import make_template_fragment_key from django.template import ( diff --git a/django/templatetags/i18n.py b/django/templatetags/i18n.py index 0c4f03e948e5..4a32e628c214 100644 --- a/django/templatetags/i18n.py +++ b/django/templatetags/i18n.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys from django.conf import settings diff --git a/django/test/client.py b/django/test/client.py index 05d3d7860349..7365b1d2aa36 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import json import mimetypes import os diff --git a/django/test/html.py b/django/test/html.py index dfff8d636926..94dc7f540e5f 100644 --- a/django/test/html.py +++ b/django/test/html.py @@ -2,8 +2,6 @@ Comparing two html documents. """ -from __future__ import unicode_literals - import re from django.utils import six diff --git a/django/test/selenium.py b/django/test/selenium.py index ae8e603a5848..de3744c91e73 100644 --- a/django/test/selenium.py +++ b/django/test/selenium.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys import unittest from contextlib import contextmanager diff --git a/django/test/testcases.py b/django/test/testcases.py index e342ac282d16..88d355311daa 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import difflib import json import posixpath diff --git a/django/urls/base.py b/django/urls/base.py index ddf3b64dabbc..8e30acb860b5 100644 --- a/django/urls/base.py +++ b/django/urls/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from threading import local from django.utils import six diff --git a/django/urls/exceptions.py b/django/urls/exceptions.py index 14967f7eb4a6..87bf5284f757 100644 --- a/django/urls/exceptions.py +++ b/django/urls/exceptions.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.http import Http404 diff --git a/django/urls/resolvers.py b/django/urls/resolvers.py index 1de59a8763cc..4a66895de521 100644 --- a/django/urls/resolvers.py +++ b/django/urls/resolvers.py @@ -5,8 +5,6 @@ a string) and returns a ResolverMatch object which provides access to all attributes of the resolved URL match. """ -from __future__ import unicode_literals - import functools import re import threading diff --git a/django/urls/utils.py b/django/urls/utils.py index 1901c0a494b8..8558b82bbad0 100644 --- a/django/urls/utils.py +++ b/django/urls/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from importlib import import_module from django.core.exceptions import ViewDoesNotExist diff --git a/django/utils/_os.py b/django/utils/_os.py index a874214a5890..994f766d498c 100644 --- a/django/utils/_os.py +++ b/django/utils/_os.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import sys import tempfile diff --git a/django/utils/cache.py b/django/utils/cache.py index 0f6232b51b4a..fabdb363b9ab 100644 --- a/django/utils/cache.py +++ b/django/utils/cache.py @@ -16,8 +16,6 @@ An example: i18n middleware would need to distinguish caches by the "Accept-language" header. """ -from __future__ import unicode_literals - import hashlib import logging import re diff --git a/django/utils/crypto.py b/django/utils/crypto.py index 3804dd911117..a7257a1b3a6d 100644 --- a/django/utils/crypto.py +++ b/django/utils/crypto.py @@ -1,8 +1,6 @@ """ Django's standard crypto functions and utilities. """ -from __future__ import unicode_literals - import binascii import hashlib import hmac diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 70650bf625b6..861bf8f9236a 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -10,8 +10,6 @@ 7th October 2003 11:39 >>> """ -from __future__ import unicode_literals - import calendar import datetime import re diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py index 28405cf2c190..a37f2e3d69da 100644 --- a/django/utils/deprecation.py +++ b/django/utils/deprecation.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import inspect import warnings diff --git a/django/utils/encoding.py b/django/utils/encoding.py index 999ffae19a02..a3b07dcec6a9 100644 --- a/django/utils/encoding.py +++ b/django/utils/encoding.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import codecs import datetime import locale diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py index d8a932b02002..64aa970e93da 100644 --- a/django/utils/feedgenerator.py +++ b/django/utils/feedgenerator.py @@ -21,8 +21,6 @@ For definitions of the different versions of RSS, see: http://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004/02/04/incompatible-rss """ -from __future__ import unicode_literals - import datetime from django.utils import datetime_safe, six diff --git a/django/utils/glob.py b/django/utils/glob.py index d3f9e081381c..92194d21eb2a 100644 --- a/django/utils/glob.py +++ b/django/utils/glob.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os.path import re diff --git a/django/utils/html.py b/django/utils/html.py index ff9adffc750e..384093a02f1c 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -1,7 +1,5 @@ """HTML utilities suitable for global use.""" -from __future__ import unicode_literals - import re from django.utils import six diff --git a/django/utils/http.py b/django/utils/http.py index cba2a080956a..f4e77b86f96c 100644 --- a/django/utils/http.py +++ b/django/utils/http.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import base64 import calendar import datetime diff --git a/django/utils/inspect.py b/django/utils/inspect.py index 597b2c095e10..ffcbf3040730 100644 --- a/django/utils/inspect.py +++ b/django/utils/inspect.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import inspect from django.utils import six diff --git a/django/utils/jslex.py b/django/utils/jslex.py index bef61291888d..0958ac030cab 100644 --- a/django/utils/jslex.py +++ b/django/utils/jslex.py @@ -1,7 +1,5 @@ """JsLex: a lexer for Javascript""" # Originally from https://bitbucket.org/ned/jslex -from __future__ import unicode_literals - import re diff --git a/django/utils/log.py b/django/utils/log.py index 2b57c6beffe6..77e2f592502c 100644 --- a/django/utils/log.py +++ b/django/utils/log.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import logging import logging.config # needed when logging_config doesn't start with logging.config from copy import copy diff --git a/django/utils/lorem_ipsum.py b/django/utils/lorem_ipsum.py index 03426c152bef..87988d20507a 100644 --- a/django/utils/lorem_ipsum.py +++ b/django/utils/lorem_ipsum.py @@ -2,8 +2,6 @@ Utility functions for generating "lorem ipsum" Latin text. """ -from __future__ import unicode_literals - import random COMMON_P = ( diff --git a/django/utils/numberformat.py b/django/utils/numberformat.py index ae5a3b547410..d4c9ad74a5d3 100644 --- a/django/utils/numberformat.py +++ b/django/utils/numberformat.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from decimal import Decimal from django.conf import settings diff --git a/django/utils/regex_helper.py b/django/utils/regex_helper.py index d046b71d96e1..41f2459491ec 100644 --- a/django/utils/regex_helper.py +++ b/django/utils/regex_helper.py @@ -5,8 +5,6 @@ This is not, and is not intended to be, a complete reg-exp decompiler. It should be good enough for a large class of URLS, however. """ -from __future__ import unicode_literals - import warnings from django.utils import six diff --git a/django/utils/six.py b/django/utils/six.py index 52627592b750..b4038c72fac9 100644 --- a/django/utils/six.py +++ b/django/utils/six.py @@ -20,8 +20,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from __future__ import absolute_import - import functools import itertools import operator diff --git a/django/utils/text.py b/django/utils/text.py index b0f139e03497..dcedc524b097 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re import unicodedata from gzip import GzipFile diff --git a/django/utils/timesince.py b/django/utils/timesince.py index b0eefaf73437..f87d958f4f22 100644 --- a/django/utils/timesince.py +++ b/django/utils/timesince.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import calendar import datetime diff --git a/django/utils/translation/__init__.py b/django/utils/translation/__init__.py index 6cdcaf9bf178..fd02fa16a33e 100644 --- a/django/utils/translation/__init__.py +++ b/django/utils/translation/__init__.py @@ -1,8 +1,6 @@ """ Internationalization support. """ -from __future__ import unicode_literals - import re import warnings diff --git a/django/utils/translation/template.py b/django/utils/translation/template.py index b8618c4dd2e9..04dac65e90e2 100644 --- a/django/utils/translation/template.py +++ b/django/utils/translation/template.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re import warnings diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index b3da22482a48..9f016e85249f 100644 --- a/django/utils/translation/trans_real.py +++ b/django/utils/translation/trans_real.py @@ -1,6 +1,4 @@ """Translation helper functions.""" -from __future__ import unicode_literals - import gettext as gettext_module import os import re diff --git a/django/utils/version.py b/django/utils/version.py index f5b0f109e6bf..dcf0c2186644 100644 --- a/django/utils/version.py +++ b/django/utils/version.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import os import subprocess diff --git a/django/views/debug.py b/django/views/debug.py index 0fb5ab1a2d81..7c33aa8eca3a 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re import sys import types diff --git a/django/views/generic/base.py b/django/views/generic/base.py index fc04bcc311db..4187e70b12e2 100644 --- a/django/views/generic/base.py +++ b/django/views/generic/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import logging from functools import update_wrapper diff --git a/django/views/generic/dates.py b/django/views/generic/dates.py index 938c53853588..d03140a9738c 100644 --- a/django/views/generic/dates.py +++ b/django/views/generic/dates.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.conf import settings diff --git a/django/views/generic/detail.py b/django/views/generic/detail.py index 2b67ef5e5ceb..b84585804b4d 100644 --- a/django/views/generic/detail.py +++ b/django/views/generic/detail.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import ImproperlyConfigured from django.db import models from django.http import Http404 diff --git a/django/views/generic/list.py b/django/views/generic/list.py index 2277ffd4d3ec..951c11f5a520 100644 --- a/django/views/generic/list.py +++ b/django/views/generic/list.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import ImproperlyConfigured from django.core.paginator import InvalidPage, Paginator from django.db.models.query import QuerySet diff --git a/django/views/static.py b/django/views/static.py index 2af26621f392..bfa171357d38 100644 --- a/django/views/static.py +++ b/django/views/static.py @@ -2,8 +2,6 @@ Views and functions for serving static files. These are only to be used during development, and SHOULD NOT be used in a production setting. """ -from __future__ import unicode_literals - import mimetypes import os import posixpath diff --git a/docs/conf.py b/docs/conf.py index 1643559a1dc0..13a6dbd67e00 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # Django documentation build configuration file, created by # sphinx-quickstart on Thu Mar 27 09:06:53 2008. # @@ -11,8 +9,6 @@ # All configuration values have a default; values that are commented out # serve to show the default. -from __future__ import unicode_literals - import sys from os.path import abspath, dirname, join diff --git a/docs/howto/writing-migrations.txt b/docs/howto/writing-migrations.txt index 35964f7ce851..02579eeeb4ad 100644 --- a/docs/howto/writing-migrations.txt +++ b/docs/howto/writing-migrations.txt @@ -100,10 +100,7 @@ the respective field according to your needs. .. snippet:: :filename: 0006_remove_uuid_null.py - # -*- coding: utf-8 -*- # Generated by Django A.B on YYYY-MM-DD HH:MM - from __future__ import unicode_literals - from django.db import migrations, models import uuid @@ -154,10 +151,7 @@ the respective field according to your needs. .. snippet:: :filename: 0005_populate_uuid_values.py - # -*- coding: utf-8 -*- # Generated by Django A.B on YYYY-MM-DD HH:MM - from __future__ import unicode_literals - from django.db import migrations, models import uuid diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt index 6c218e38b332..4169b74b8863 100644 --- a/docs/ref/files/file.txt +++ b/docs/ref/files/file.txt @@ -111,7 +111,6 @@ The ``ContentFile`` class but unlike :class:`~django.core.files.File` it operates on string content (bytes also supported), rather than an actual file. For example:: - from __future__ import unicode_literals from django.core.files.base import ContentFile f1 = ContentFile("esta sentencia está en español") diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt index 7e5f4d478490..e6e6f73a99d1 100644 --- a/docs/ref/migration-operations.txt +++ b/docs/ref/migration-operations.txt @@ -310,9 +310,6 @@ class in the migration file, and just pass it to ``RunPython``. Here's an example of using ``RunPython`` to create some initial objects on a ``Country`` model:: - # -*- coding: utf-8 -*- - from __future__ import unicode_literals - from django.db import migrations, models def forwards_func(apps, schema_editor): diff --git a/docs/topics/i18n/formatting.txt b/docs/topics/i18n/formatting.txt index 248d6b0d23a9..4a0ce6d3e843 100644 --- a/docs/topics/i18n/formatting.txt +++ b/docs/topics/i18n/formatting.txt @@ -177,8 +177,6 @@ To customize the English formats, a structure like this would be needed:: where :file:`formats.py` contains custom format definitions. For example:: - from __future__ import unicode_literals - THOUSAND_SEPARATOR = '\xa0' to use a non-breaking space (Unicode ``00A0``) as a thousand separator, diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index e8675fe5457a..5475e7b385f7 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -454,10 +454,7 @@ the file in the right place, suggest a name, and add dependencies for you):: Then, open up the file; it should look something like this:: - # -*- coding: utf-8 -*- # Generated by Django A.B on YYYY-MM-DD HH:MM - from __future__ import unicode_literals - from django.db import migrations, models class Migration(migrations.Migration): @@ -485,9 +482,6 @@ combined values of ``first_name`` and ``last_name`` (we've come to our senses and realized that not everyone has first and last names). All we need to do is use the historical model and iterate over the rows:: - # -*- coding: utf-8 -*- - from __future__ import unicode_literals - from django.db import migrations, models def combine_names(apps, schema_editor): @@ -757,26 +751,6 @@ The decorator adds logic to capture and preserve the arguments on their way into your constructor, and then returns those arguments exactly when deconstruct() is called. -Supporting Python 2 and 3 -========================= - -In order to generate migrations that support both Python 2 and 3, all string -literals used in your models and fields (e.g. ``verbose_name``, -``related_name``, etc.), must be consistently either bytestrings or text -(unicode) strings in both Python 2 and 3 (rather than bytes in Python 2 and -text in Python 3, the default situation for unmarked string literals.) -Otherwise running :djadmin:`makemigrations` under Python 3 will generate -spurious new migrations to convert all these string attributes to text. - -The easiest way to achieve this is to follow the advice in Django's -:doc:`Python 3 porting guide ` and make sure that all your -modules begin with ``from __future__ import unicode_literals``, so that all -unmarked string literals are always unicode, regardless of Python version. When -you add this to an app with existing migrations generated on Python 2, your -next run of :djadmin:`makemigrations` on Python 3 will likely generate many -changes as it converts all the bytestring attributes to text strings; this is -normal and should only happen once. - Supporting multiple Django versions =================================== diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt index a819acf3f01e..23d74cbaa344 100644 --- a/docs/topics/templates.txt +++ b/docs/topics/templates.txt @@ -422,8 +422,6 @@ environment. For example, you can create ``myproject/jinja2.py`` with this content:: - from __future__ import absolute_import # Python 2 only - from django.contrib.staticfiles.storage import staticfiles_storage from django.urls import reverse diff --git a/tests/admin_changelist/tests.py b/tests/admin_changelist/tests.py index 2f0f6ad46b2e..48e746031450 100644 --- a/tests/admin_changelist/tests.py +++ b/tests/admin_changelist/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.contrib import admin diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py index 3d629077c5cb..e8714fe1a803 100644 --- a/tests/admin_checks/tests.py +++ b/tests/admin_checks/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.contrib import admin from django.contrib.admin import AdminSite diff --git a/tests/admin_custom_urls/tests.py b/tests/admin_custom_urls/tests.py index 319e6f66534c..e0c2d4f74662 100644 --- a/tests/admin_custom_urls/tests.py +++ b/tests/admin_custom_urls/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.admin.utils import quote from django.contrib.auth.models import User from django.template.response import TemplateResponse diff --git a/tests/admin_docs/test_middleware.py b/tests/admin_docs/test_middleware.py index 426c78d58fb0..8a818e15d198 100644 --- a/tests/admin_docs/test_middleware.py +++ b/tests/admin_docs/test_middleware.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.models import User from .tests import AdminDocsTestCase, TestDataMixin diff --git a/tests/admin_docs/test_utils.py b/tests/admin_docs/test_utils.py index 013d00391453..0c738e5e89a1 100644 --- a/tests/admin_docs/test_utils.py +++ b/tests/admin_docs/test_utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from django.contrib.admindocs.utils import ( diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index b48147fc852e..9f7f0ee268b5 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys import unittest diff --git a/tests/admin_docs/tests.py b/tests/admin_docs/tests.py index c376a4cf5ec3..2a2f9d25e080 100644 --- a/tests/admin_docs/tests.py +++ b/tests/admin_docs/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.models import User from django.test import TestCase, modify_settings, override_settings diff --git a/tests/admin_filters/models.py b/tests/admin_filters/models.py index 8860201d35a5..f508aa1f9b4e 100644 --- a/tests/admin_filters/models.py +++ b/tests/admin_filters/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.models import User from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, diff --git a/tests/admin_filters/tests.py b/tests/admin_filters/tests.py index e2da7ec59e59..0df02708a81f 100644 --- a/tests/admin_filters/tests.py +++ b/tests/admin_filters/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import sys import unittest diff --git a/tests/admin_inlines/models.py b/tests/admin_inlines/models.py index 15297c521ff3..e78511aaab06 100644 --- a/tests/admin_inlines/models.py +++ b/tests/admin_inlines/models.py @@ -1,9 +1,6 @@ """ Testing of admin inline formsets. - """ -from __future__ import unicode_literals - import random from django.contrib.contenttypes.fields import GenericForeignKey diff --git a/tests/admin_inlines/test_templates.py b/tests/admin_inlines/test_templates.py index 236ec5df7b0a..5c8d7ce0c105 100644 --- a/tests/admin_inlines/test_templates.py +++ b/tests/admin_inlines/test_templates.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import json from django.template.loader import render_to_string diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py index 6922a9f82fd5..6deba9b1c240 100644 --- a/tests/admin_inlines/tests.py +++ b/tests/admin_inlines/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.admin import ModelAdmin, TabularInline from django.contrib.admin.helpers import InlineAdminForm from django.contrib.admin.tests import AdminSeleniumTestCase diff --git a/tests/admin_ordering/models.py b/tests/admin_ordering/models.py index cd26f2a710d0..b8098b9bccf9 100644 --- a/tests/admin_ordering/models.py +++ b/tests/admin_ordering/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.contrib import admin from django.db import models diff --git a/tests/admin_ordering/tests.py b/tests/admin_ordering/tests.py index def9b8b7c7b4..250b59dea8d9 100644 --- a/tests/admin_ordering/tests.py +++ b/tests/admin_ordering/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib import admin from django.contrib.admin.options import ModelAdmin from django.contrib.auth.models import User diff --git a/tests/admin_registration/tests.py b/tests/admin_registration/tests.py index db38265182b1..125d8eae6117 100644 --- a/tests/admin_registration/tests.py +++ b/tests/admin_registration/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib import admin from django.contrib.admin.decorators import register from django.contrib.admin.sites import site diff --git a/tests/admin_scripts/another_app_waiting_migration/migrations/0001_initial.py b/tests/admin_scripts/another_app_waiting_migration/migrations/0001_initial.py index 1486231d6b0b..d5fce1af362b 100644 --- a/tests/admin_scripts/another_app_waiting_migration/migrations/0001_initial.py +++ b/tests/admin_scripts/another_app_waiting_migration/migrations/0001_initial.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/admin_scripts/another_app_waiting_migration/models.py b/tests/admin_scripts/another_app_waiting_migration/models.py index 6c12c6ab5d5c..c089cb64e6e6 100644 --- a/tests/admin_scripts/another_app_waiting_migration/models.py +++ b/tests/admin_scripts/another_app_waiting_migration/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models diff --git a/tests/admin_scripts/app_raising_messages/models.py b/tests/admin_scripts/app_raising_messages/models.py index bd37ba458a37..400fc8f9079a 100644 --- a/tests/admin_scripts/app_raising_messages/models.py +++ b/tests/admin_scripts/app_raising_messages/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core import checks from django.db import models diff --git a/tests/admin_scripts/app_raising_warning/models.py b/tests/admin_scripts/app_raising_warning/models.py index 0ae304263460..bc9b3b380f47 100644 --- a/tests/admin_scripts/app_raising_warning/models.py +++ b/tests/admin_scripts/app_raising_warning/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core import checks from django.db import models diff --git a/tests/admin_scripts/app_waiting_migration/migrations/0001_initial.py b/tests/admin_scripts/app_waiting_migration/migrations/0001_initial.py index 52d594a94a69..aa47c4d47408 100644 --- a/tests/admin_scripts/app_waiting_migration/migrations/0001_initial.py +++ b/tests/admin_scripts/app_waiting_migration/migrations/0001_initial.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/admin_scripts/app_waiting_migration/models.py b/tests/admin_scripts/app_waiting_migration/models.py index 5e9f0e33148a..46fee9c8571b 100644 --- a/tests/admin_scripts/app_waiting_migration/models.py +++ b/tests/admin_scripts/app_waiting_migration/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index af3ada5bcc4c..08fe64553527 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1,11 +1,8 @@ -# -*- coding: utf-8 -*- """ A series of tests to establish that the command-line management tools work as advertised - especially with regards to the handling of the DJANGO_SETTINGS_MODULE and default settings.py files. """ -from __future__ import unicode_literals - import codecs import os import re @@ -30,7 +27,7 @@ ) from django.utils._os import npath, upath from django.utils.encoding import force_text -from django.utils.six import PY2, PY3, StringIO +from django.utils.six import PY2, StringIO custom_templates_dir = os.path.join(os.path.dirname(upath(__file__)), 'custom_templates') @@ -67,7 +64,6 @@ def write_settings(self, filename, apps=None, is_dir=False, sdict=None, extra=No settings_file_path = os.path.join(self.test_dir, filename) with open(settings_file_path, 'w') as settings_file: - settings_file.write('# -*- coding: utf-8 -*\n') settings_file.write('# Settings file automatically generated by admin_scripts test case\n') if extra: settings_file.write("%s\n" % extra) @@ -614,26 +610,10 @@ def test_setup_environ(self): self.addCleanup(shutil.rmtree, app_path) self.assertNoOutput(err) self.assertTrue(os.path.exists(app_path)) - unicode_literals_import = "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\n" with open(os.path.join(app_path, 'apps.py'), 'r') as f: content = f.read() self.assertIn("class SettingsTestConfig(AppConfig)", content) self.assertIn("name = 'settings_test'", content) - if not PY3: - self.assertIn(unicode_literals_import, content) - if not PY3: - with open(os.path.join(app_path, 'models.py'), 'r') as fp: - content = fp.read() - self.assertIn(unicode_literals_import, content) - with open(os.path.join(app_path, 'views.py'), 'r') as fp: - content = fp.read() - self.assertIn(unicode_literals_import, content) - with open(os.path.join(app_path, 'admin.py'), 'r') as fp: - content = fp.read() - self.assertIn(unicode_literals_import, content) - with open(os.path.join(app_path, 'tests.py'), 'r') as fp: - content = fp.read() - self.assertIn(unicode_literals_import, content) def test_setup_environ_custom_template(self): "directory: startapp creates the correct directory with a custom template" diff --git a/tests/admin_utils/test_logentry.py b/tests/admin_utils/test_logentry.py index ba0e3c1bfd99..89b25f462b47 100644 --- a/tests/admin_utils/test_logentry.py +++ b/tests/admin_utils/test_logentry.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import json from datetime import datetime diff --git a/tests/admin_utils/tests.py b/tests/admin_utils/tests.py index 966a1f11f2d8..245334df4d24 100644 --- a/tests/admin_utils/tests.py +++ b/tests/admin_utils/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime from decimal import Decimal diff --git a/tests/admin_views/admin.py b/tests/admin_views/admin.py index d85f5de059ae..b8d35b6d81e3 100644 --- a/tests/admin_views/admin.py +++ b/tests/admin_views/admin.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import tempfile from wsgiref.util import FileWrapper diff --git a/tests/admin_views/custom_has_permission_admin.py b/tests/admin_views/custom_has_permission_admin.py index a578895b5a75..0c774ef57372 100644 --- a/tests/admin_views/custom_has_permission_admin.py +++ b/tests/admin_views/custom_has_permission_admin.py @@ -1,8 +1,6 @@ """ A custom AdminSite for AdminViewPermissionsTest.test_login_has_permission(). """ -from __future__ import unicode_literals - from django.contrib import admin from django.contrib.auth import get_permission_codename from django.contrib.auth.forms import AuthenticationForm diff --git a/tests/admin_views/customadmin.py b/tests/admin_views/customadmin.py index 644bbedae77e..5eb1f2baa237 100644 --- a/tests/admin_views/customadmin.py +++ b/tests/admin_views/customadmin.py @@ -1,8 +1,6 @@ """ A second, custom AdminSite -- see tests.CustomAdminSiteTests. """ -from __future__ import unicode_literals - from django.conf.urls import url from django.contrib import admin from django.contrib.auth.admin import UserAdmin diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py index 86ab055f3027..54d8f5f96860 100644 --- a/tests/admin_views/models.py +++ b/tests/admin_views/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import os import tempfile diff --git a/tests/admin_views/test_adminsite.py b/tests/admin_views/test_adminsite.py index 7077d4be58f1..088561535316 100644 --- a/tests/admin_views/test_adminsite.py +++ b/tests/admin_views/test_adminsite.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from django.contrib import admin from django.contrib.auth.models import User diff --git a/tests/admin_views/test_templatetags.py b/tests/admin_views/test_templatetags.py index a62c1caf8932..19a6450be821 100644 --- a/tests/admin_views/test_templatetags.py +++ b/tests/admin_views/test_templatetags.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.admin.templatetags.admin_modify import submit_row from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index a724d57559b4..2353a9ee7aaa 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import json import os diff --git a/tests/admin_widgets/models.py b/tests/admin_widgets/models.py index 274c36e15ee3..43aa88e254a0 100644 --- a/tests/admin_widgets/models.py +++ b/tests/admin_widgets/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index b74df4e25136..8eadab07d577 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import gettext import os import re diff --git a/tests/aggregation/models.py b/tests/aggregation/models.py index 9d4794641864..37421dbb81a2 100644 --- a/tests/aggregation/models.py +++ b/tests/aggregation/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index 4711869cfd76..25a1e00827df 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import re from decimal import Decimal diff --git a/tests/aggregation_regress/models.py b/tests/aggregation_regress/models.py index e606beb304da..a9ab1cbdcea8 100644 --- a/tests/aggregation_regress/models.py +++ b/tests/aggregation_regress/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py index 2958736fe9a3..afbc7c20b2e3 100644 --- a/tests/aggregation_regress/tests.py +++ b/tests/aggregation_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import pickle from decimal import Decimal diff --git a/tests/annotations/models.py b/tests/annotations/models.py index a92ca0b43a9d..79648ffd961d 100644 --- a/tests/annotations/models.py +++ b/tests/annotations/models.py @@ -1,4 +1,3 @@ -# coding: utf-8 from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py index b90286b9daee..bffac69e219d 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from decimal import Decimal diff --git a/tests/app_loading/tests.py b/tests/app_loading/tests.py index a79bdaec04f7..021e711796b6 100644 --- a/tests/app_loading/tests.py +++ b/tests/app_loading/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from django.apps import apps diff --git a/tests/apps/apps.py b/tests/apps/apps.py index 7faa63e43524..1096c1e4b881 100644 --- a/tests/apps/apps.py +++ b/tests/apps/apps.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import AppConfig diff --git a/tests/apps/models.py b/tests/apps/models.py index 733be35d2edb..f5f5926ea63c 100644 --- a/tests/apps/models.py +++ b/tests/apps/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps.registry import Apps from django.db import models diff --git a/tests/apps/tests.py b/tests/apps/tests.py index a0f7ecbb10d3..d2adc681f21b 100644 --- a/tests/apps/tests.py +++ b/tests/apps/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from unittest import skipUnless diff --git a/tests/auth_tests/test_auth_backends.py b/tests/auth_tests/test_auth_backends.py index 080270296bad..f06e82569830 100644 --- a/tests/auth_tests/test_auth_backends.py +++ b/tests/auth_tests/test_auth_backends.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import date from django.contrib.auth import ( diff --git a/tests/auth_tests/test_basic.py b/tests/auth_tests/test_basic.py index 4555e282705d..b2c70faffb7c 100644 --- a/tests/auth_tests/test_basic.py +++ b/tests/auth_tests/test_basic.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.contrib.auth import get_user, get_user_model from django.contrib.auth.models import AnonymousUser, User from django.core.exceptions import ImproperlyConfigured diff --git a/tests/auth_tests/test_checks.py b/tests/auth_tests/test_checks.py index 8dca3159d1a9..3f86e7a80ed2 100644 --- a/tests/auth_tests/test_checks.py +++ b/tests/auth_tests/test_checks.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.checks import ( check_models_permissions, check_user_model, ) diff --git a/tests/auth_tests/test_deprecated_views.py b/tests/auth_tests/test_deprecated_views.py index 542833686a85..d084f4dcef0f 100644 --- a/tests/auth_tests/test_deprecated_views.py +++ b/tests/auth_tests/test_deprecated_views.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import itertools import re diff --git a/tests/auth_tests/test_forms.py b/tests/auth_tests/test_forms.py index cc77288f56a1..36b4e8f4e729 100644 --- a/tests/auth_tests/test_forms.py +++ b/tests/auth_tests/test_forms.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import re from unittest import skipIf diff --git a/tests/auth_tests/test_handlers.py b/tests/auth_tests/test_handlers.py index 0e2a42b80a97..57a43f877f20 100644 --- a/tests/auth_tests/test_handlers.py +++ b/tests/auth_tests/test_handlers.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.handlers.modwsgi import ( check_password, groups_for_user, ) diff --git a/tests/auth_tests/test_hashers.py b/tests/auth_tests/test_hashers.py index 5a8e44bcd731..4b6aa8f7995b 100644 --- a/tests/auth_tests/test_hashers.py +++ b/tests/auth_tests/test_hashers.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from unittest import skipUnless from django.conf.global_settings import PASSWORD_HASHERS diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py index 976b318c7464..eaceafb44455 100644 --- a/tests/auth_tests/test_management.py +++ b/tests/auth_tests/test_management.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys from datetime import date diff --git a/tests/auth_tests/test_models.py b/tests/auth_tests/test_models.py index bd649495019e..ebe3dc083793 100644 --- a/tests/auth_tests/test_models.py +++ b/tests/auth_tests/test_models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.conf.global_settings import PASSWORD_HASHERS from django.contrib.auth import get_user_model from django.contrib.auth.base_user import AbstractBaseUser diff --git a/tests/auth_tests/test_validators.py b/tests/auth_tests/test_validators.py index e074716f46ed..19d75c8d3006 100644 --- a/tests/auth_tests/test_validators.py +++ b/tests/auth_tests/test_validators.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from django.contrib.auth import validators diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 2d0d2ae96fbb..f25080092101 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import itertools import os diff --git a/tests/backends/models.py b/tests/backends/models.py index e57206ec6017..18423e1276c6 100644 --- a/tests/backends/models.py +++ b/tests/backends/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) diff --git a/tests/backends/test_mysql.py b/tests/backends/test_mysql.py index db8aff12d0ef..d7030975f60d 100644 --- a/tests/backends/test_mysql.py +++ b/tests/backends/test_mysql.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from django.core.exceptions import ImproperlyConfigured diff --git a/tests/backends/tests.py b/tests/backends/tests.py index e17679a4ba28..7a102b040a30 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -1,7 +1,4 @@ -# -*- coding: utf-8 -*- # Unit and doctests for specific database backends. -from __future__ import unicode_literals - import datetime import re import threading diff --git a/tests/base/models.py b/tests/base/models.py index 4a8a2ffd8175..077b93fbb800 100644 --- a/tests/base/models.py +++ b/tests/base/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils import six diff --git a/tests/basic/models.py b/tests/basic/models.py index 91fbe7d64816..a6010f1291ff 100644 --- a/tests/basic/models.py +++ b/tests/basic/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Bare-bones model diff --git a/tests/basic/tests.py b/tests/basic/tests.py index dd7570c5b9e1..544a862766c8 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import threading from datetime import datetime, timedelta diff --git a/tests/builtin_server/tests.py b/tests/builtin_server/tests.py index 14253f70a457..2784571b0cd7 100644 --- a/tests/builtin_server/tests.py +++ b/tests/builtin_server/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import sys import traceback from io import BytesIO diff --git a/tests/bulk_create/tests.py b/tests/bulk_create/tests.py index 3378f0010af9..65d0f9ba8c6d 100644 --- a/tests/bulk_create/tests.py +++ b/tests/bulk_create/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from operator import attrgetter from django.db import connection diff --git a/tests/cache/tests.py b/tests/cache/tests.py index edf25cfc65df..5be3db0ef45f 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -1,9 +1,5 @@ -# -*- coding: utf-8 -*- - # Unit tests for cache framework # Uses whatever cache backend is set in the test settings file. -from __future__ import unicode_literals - import copy import io import os diff --git a/tests/check_framework/models.py b/tests/check_framework/models.py index fe573fce84db..f13010cc57f5 100644 --- a/tests/check_framework/models.py +++ b/tests/check_framework/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core.checks import register from django.db import models diff --git a/tests/check_framework/tests.py b/tests/check_framework/tests.py index a64ef206ad2b..0e82c10b456d 100644 --- a/tests/check_framework/tests.py +++ b/tests/check_framework/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys from django.apps import apps diff --git a/tests/conditional_processing/tests.py b/tests/conditional_processing/tests.py index e4af9447e02d..fd0b10cef412 100644 --- a/tests/conditional_processing/tests.py +++ b/tests/conditional_processing/tests.py @@ -1,6 +1,3 @@ -# -*- coding:utf-8 -*- -from __future__ import unicode_literals - from datetime import datetime from django.test import SimpleTestCase, override_settings diff --git a/tests/contenttypes_tests/models.py b/tests/contenttypes_tests/models.py index fe1854e8a38f..1640ee3b8cc4 100644 --- a/tests/contenttypes_tests/models.py +++ b/tests/contenttypes_tests/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) diff --git a/tests/contenttypes_tests/operations_migrations/0001_initial.py b/tests/contenttypes_tests/operations_migrations/0001_initial.py index f08a6a81867f..9d4311752950 100644 --- a/tests/contenttypes_tests/operations_migrations/0001_initial.py +++ b/tests/contenttypes_tests/operations_migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/contenttypes_tests/operations_migrations/0002_rename_foo.py b/tests/contenttypes_tests/operations_migrations/0002_rename_foo.py index 34c8cd8a80dd..3a1527dc03e1 100644 --- a/tests/contenttypes_tests/operations_migrations/0002_rename_foo.py +++ b/tests/contenttypes_tests/operations_migrations/0002_rename_foo.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/contenttypes_tests/test_models.py b/tests/contenttypes_tests/test_models.py index a51a343c839b..bb0f8c890f24 100644 --- a/tests/contenttypes_tests/test_models.py +++ b/tests/contenttypes_tests/test_models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.contenttypes.models import ContentType, ContentTypeManager from django.contrib.contenttypes.views import shortcut from django.contrib.sites.shortcuts import get_current_site diff --git a/tests/contenttypes_tests/tests.py b/tests/contenttypes_tests/tests.py index 95ec5e5e2b4d..a46c9f336578 100644 --- a/tests/contenttypes_tests/tests.py +++ b/tests/contenttypes_tests/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from django.apps.registry import Apps, apps diff --git a/tests/contenttypes_tests/urls.py b/tests/contenttypes_tests/urls.py index 285a5a206850..779e8c4a6038 100644 --- a/tests/contenttypes_tests/urls.py +++ b/tests/contenttypes_tests/urls.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from django.contrib.contenttypes import views diff --git a/tests/csrf_tests/tests.py b/tests/csrf_tests/tests.py index 4480f5348e3f..33f30a83537f 100644 --- a/tests/csrf_tests/tests.py +++ b/tests/csrf_tests/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import logging import re import warnings diff --git a/tests/csrf_tests/views.py b/tests/csrf_tests/views.py index e41f2d080511..d436ae6f7368 100644 --- a/tests/csrf_tests/views.py +++ b/tests/csrf_tests/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.http import HttpResponse from django.template import RequestContext, Template from django.template.context_processors import csrf diff --git a/tests/custom_columns/models.py b/tests/custom_columns/models.py index 3f619a7f0419..d5f5217ba5a9 100644 --- a/tests/custom_columns/models.py +++ b/tests/custom_columns/models.py @@ -15,8 +15,6 @@ """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/custom_columns/tests.py b/tests/custom_columns/tests.py index 7102e4fdbe13..04aca1291479 100644 --- a/tests/custom_columns/tests.py +++ b/tests/custom_columns/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import FieldError from django.test import TestCase from django.utils import six diff --git a/tests/custom_lookups/tests.py b/tests/custom_lookups/tests.py index 8ae94dda2612..e66a280e167b 100644 --- a/tests/custom_lookups/tests.py +++ b/tests/custom_lookups/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import contextlib import time import unittest diff --git a/tests/custom_managers/models.py b/tests/custom_managers/models.py index 51773b18b82e..1d47869af9f6 100644 --- a/tests/custom_managers/models.py +++ b/tests/custom_managers/models.py @@ -9,8 +9,6 @@ returns. """ -from __future__ import unicode_literals - from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) diff --git a/tests/custom_managers/tests.py b/tests/custom_managers/tests.py index 3daaeab131f8..1bfaf5276621 100644 --- a/tests/custom_managers/tests.py +++ b/tests/custom_managers/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.test import TestCase from django.utils import six diff --git a/tests/custom_methods/tests.py b/tests/custom_methods/tests.py index 9186a41794b3..bbcec1f9f23b 100644 --- a/tests/custom_methods/tests.py +++ b/tests/custom_methods/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import date from django.test import TestCase diff --git a/tests/custom_pk/models.py b/tests/custom_pk/models.py index 20b484c426ab..e0a318468c43 100644 --- a/tests/custom_pk/models.py +++ b/tests/custom_pk/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Using a custom primary key @@ -6,8 +5,6 @@ this behavior by explicitly adding ``primary_key=True`` to a field. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/custom_pk/tests.py b/tests/custom_pk/tests.py index fdcbd80e046d..01150a46d272 100644 --- a/tests/custom_pk/tests.py +++ b/tests/custom_pk/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import IntegrityError, transaction from django.test import TestCase, skipIfDBFeature from django.utils import six diff --git a/tests/datatypes/tests.py b/tests/datatypes/tests.py index f45c429ef231..b6899c7609cc 100644 --- a/tests/datatypes/tests.py +++ b/tests/datatypes/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.test import TestCase, skipIfDBFeature diff --git a/tests/dates/models.py b/tests/dates/models.py index 2161b2b356f7..978cf44e955f 100644 --- a/tests/dates/models.py +++ b/tests/dates/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils import timezone from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/dates/tests.py b/tests/dates/tests.py index 503d921ee135..9cb77fe9e202 100644 --- a/tests/dates/tests.py +++ b/tests/dates/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from unittest import skipUnless diff --git a/tests/datetimes/models.py b/tests/datetimes/models.py index 2fcb72be0912..4d2ad9ac7add 100644 --- a/tests/datetimes/models.py +++ b/tests/datetimes/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/datetimes/tests.py b/tests/datetimes/tests.py index 273333e61cd8..50a83f0371fb 100644 --- a/tests/datetimes/tests.py +++ b/tests/datetimes/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.test import TestCase, override_settings diff --git a/tests/db_functions/models.py b/tests/db_functions/models.py index 7494680c233f..8d0fbc6debcf 100644 --- a/tests/db_functions/models.py +++ b/tests/db_functions/models.py @@ -1,8 +1,6 @@ """ Tests for built in Function expressions. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/db_functions/test_datetime.py b/tests/db_functions/test_datetime.py index c0e98a13a9e5..f517b2f699ea 100644 --- a/tests/db_functions/test_datetime.py +++ b/tests/db_functions/test_datetime.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime import pytz diff --git a/tests/db_functions/tests.py b/tests/db_functions/tests.py index 26acc687ea6f..c86e8eb43fcb 100644 --- a/tests/db_functions/tests.py +++ b/tests/db_functions/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime, timedelta from unittest import skipIf, skipUnless diff --git a/tests/dbshell/test_postgresql_psycopg2.py b/tests/dbshell/test_postgresql_psycopg2.py index c75db4b188b7..4c4a1ae25e27 100644 --- a/tests/dbshell/test_postgresql_psycopg2.py +++ b/tests/dbshell/test_postgresql_psycopg2.py @@ -1,6 +1,3 @@ -# -*- coding: utf8 -*- -from __future__ import unicode_literals - import locale import os diff --git a/tests/defer/tests.py b/tests/defer/tests.py index 65f1f2bb15b4..0eea9545dd34 100644 --- a/tests/defer/tests.py +++ b/tests/defer/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models.query_utils import InvalidQuery from django.test import TestCase diff --git a/tests/defer_regress/tests.py b/tests/defer_regress/tests.py index 611b22be6866..314584abb4f8 100644 --- a/tests/defer_regress/tests.py +++ b/tests/defer_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from operator import attrgetter from django.contrib.contenttypes.models import ContentType diff --git a/tests/delete/models.py b/tests/delete/models.py index 8a6f4903d6d4..4064173df481 100644 --- a/tests/delete/models.py +++ b/tests/delete/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/delete/tests.py b/tests/delete/tests.py index f8203b2780cd..640dfabf4b5d 100644 --- a/tests/delete/tests.py +++ b/tests/delete/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from math import ceil from django.db import IntegrityError, connection, models diff --git a/tests/delete_regress/tests.py b/tests/delete_regress/tests.py index 2128733798d6..7472731e9436 100644 --- a/tests/delete_regress/tests.py +++ b/tests/delete_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.db import connection, models, transaction diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py index 2ad3576676f1..34056b663b4f 100644 --- a/tests/deprecation/tests.py +++ b/tests/deprecation/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import warnings from django.test import SimpleTestCase diff --git a/tests/distinct_on_fields/models.py b/tests/distinct_on_fields/models.py index 2c33f3ad8037..a4164724f3e3 100644 --- a/tests/distinct_on_fields/models.py +++ b/tests/distinct_on_fields/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/distinct_on_fields/tests.py b/tests/distinct_on_fields/tests.py index e7445003ce92..e1365dab888d 100644 --- a/tests/distinct_on_fields/tests.py +++ b/tests/distinct_on_fields/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models import Max from django.test import TestCase, skipUnlessDBFeature from django.test.utils import str_prefix diff --git a/tests/expressions/models.py b/tests/expressions/models.py index 6dc956c8fe22..e2bfb8ef679d 100644 --- a/tests/expressions/models.py +++ b/tests/expressions/models.py @@ -2,8 +2,6 @@ Tests for F() query expression syntax. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/expressions/test_queryset_values.py b/tests/expressions/test_queryset_values.py index f9d35b4385e8..e26459796807 100644 --- a/tests/expressions/test_queryset_values.py +++ b/tests/expressions/test_queryset_values.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models.aggregates import Sum from django.db.models.expressions import F from django.test import TestCase diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py index 8399e3c0a92c..d3eabb6dbb73 100644 --- a/tests/expressions/tests.py +++ b/tests/expressions/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import unittest import uuid diff --git a/tests/expressions_case/models.py b/tests/expressions_case/models.py index 9f559a4f9d9c..8c2eaac3996d 100644 --- a/tests/expressions_case/models.py +++ b/tests/expressions_case/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/expressions_case/tests.py b/tests/expressions_case/tests.py index 4617bcacb8c1..414c4353a527 100644 --- a/tests/expressions_case/tests.py +++ b/tests/expressions_case/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from datetime import date, datetime, time, timedelta from decimal import Decimal diff --git a/tests/extra_regress/models.py b/tests/extra_regress/models.py index 893c32ddd673..b271d8701f2f 100644 --- a/tests/extra_regress/models.py +++ b/tests/extra_regress/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import copy import datetime diff --git a/tests/extra_regress/tests.py b/tests/extra_regress/tests.py index acafd8efde39..53106fa2493c 100644 --- a/tests/extra_regress/tests.py +++ b/tests/extra_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from collections import OrderedDict diff --git a/tests/field_deconstruction/tests.py b/tests/field_deconstruction/tests.py index 1a6385dbf964..bb16f4d76e42 100644 --- a/tests/field_deconstruction/tests.py +++ b/tests/field_deconstruction/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import apps from django.db import models from django.test import SimpleTestCase, override_settings diff --git a/tests/field_defaults/models.py b/tests/field_defaults/models.py index 4f062320115f..71129cb5c71e 100644 --- a/tests/field_defaults/models.py +++ b/tests/field_defaults/models.py @@ -1,4 +1,3 @@ -# coding: utf-8 """ Callable defaults diff --git a/tests/field_subclassing/fields.py b/tests/field_subclassing/fields.py index c2e4b50c763f..4eb170116f31 100644 --- a/tests/field_subclassing/fields.py +++ b/tests/field_subclassing/fields.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models diff --git a/tests/field_subclassing/tests.py b/tests/field_subclassing/tests.py index d291276c1fce..a1371cab4282 100644 --- a/tests/field_subclassing/tests.py +++ b/tests/field_subclassing/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import connection from django.test import SimpleTestCase diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index 7a8b104665e6..d02b6e2dbcc1 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import errno import os import shutil diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py index 5f6a50250d54..769c06c9044a 100644 --- a/tests/file_uploads/tests.py +++ b/tests/file_uploads/tests.py @@ -1,6 +1,3 @@ -#! -*- coding: utf-8 -*- -from __future__ import unicode_literals - import base64 import errno import hashlib diff --git a/tests/file_uploads/views.py b/tests/file_uploads/views.py index 17d4a1b0f439..bba71b87c272 100644 --- a/tests/file_uploads/views.py +++ b/tests/file_uploads/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import contextlib import hashlib import json diff --git a/tests/files/tests.py b/tests/files/tests.py index 72a121fcfecb..276cbed54483 100644 --- a/tests/files/tests.py +++ b/tests/files/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import gzip import os import struct diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index ff85a9b7529b..df5067e2231c 100644 --- a/tests/fixtures/tests.py +++ b/tests/fixtures/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import sys import tempfile diff --git a/tests/fixtures_model_package/tests.py b/tests/fixtures_model_package/tests.py index 6b508a199122..d26a81e3be5e 100644 --- a/tests/fixtures_model_package/tests.py +++ b/tests/fixtures_model_package/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core import management from django.core.management import CommandError from django.test import TestCase diff --git a/tests/fixtures_regress/models.py b/tests/fixtures_regress/models.py index 084b602b7c1a..63e883f7d541 100644 --- a/tests/fixtures_regress/models.py +++ b/tests/fixtures_regress/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.models import User from django.db import models from django.utils import six diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py index 657ea13b3671..3667fcbd4c69 100644 --- a/tests/fixtures_regress/tests.py +++ b/tests/fixtures_regress/tests.py @@ -1,7 +1,4 @@ -# -*- coding: utf-8 -*- # Unittests for fixtures. -from __future__ import unicode_literals - import json import os import re diff --git a/tests/flatpages_tests/test_forms.py b/tests/flatpages_tests/test_forms.py index 100669be5985..228790a4485e 100644 --- a/tests/flatpages_tests/test_forms.py +++ b/tests/flatpages_tests/test_forms.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf import settings from django.contrib.flatpages.forms import FlatpageForm from django.contrib.flatpages.models import FlatPage diff --git a/tests/flatpages_tests/test_models.py b/tests/flatpages_tests/test_models.py index ccb73c799e19..19d61cfff777 100644 --- a/tests/flatpages_tests/test_models.py +++ b/tests/flatpages_tests/test_models.py @@ -1,7 +1,3 @@ -# -*- coding: utf-8 -*- - -from __future__ import unicode_literals - from django.contrib.flatpages.models import FlatPage from django.test import SimpleTestCase from django.test.utils import override_script_prefix diff --git a/tests/flatpages_tests/test_sitemaps.py b/tests/flatpages_tests/test_sitemaps.py index 5be4fe518a2b..10076798c0d8 100644 --- a/tests/flatpages_tests/test_sitemaps.py +++ b/tests/flatpages_tests/test_sitemaps.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import apps from django.contrib.sites.models import Site from django.test import TestCase diff --git a/tests/force_insert_update/tests.py b/tests/force_insert_update/tests.py index ae8b771ed1f6..2232283cb8a9 100644 --- a/tests/force_insert_update/tests.py +++ b/tests/force_insert_update/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import DatabaseError, IntegrityError, transaction from django.test import TestCase diff --git a/tests/forms_tests/field_tests/test_booleanfield.py b/tests/forms_tests/field_tests/test_booleanfield.py index e267777b9438..d2ed9d79559c 100644 --- a/tests/forms_tests/field_tests/test_booleanfield.py +++ b/tests/forms_tests/field_tests/test_booleanfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import pickle from django.forms import BooleanField, ValidationError diff --git a/tests/forms_tests/field_tests/test_charfield.py b/tests/forms_tests/field_tests/test_charfield.py index d8fa41b0739c..a59291e33a8e 100644 --- a/tests/forms_tests/field_tests/test_charfield.py +++ b/tests/forms_tests/field_tests/test_charfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import ( CharField, HiddenInput, PasswordInput, Textarea, TextInput, ValidationError, diff --git a/tests/forms_tests/field_tests/test_choicefield.py b/tests/forms_tests/field_tests/test_choicefield.py index 1d8fe5a3cfb0..f500c1868098 100644 --- a/tests/forms_tests/field_tests/test_choicefield.py +++ b/tests/forms_tests/field_tests/test_choicefield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.forms import ChoiceField, Form, ValidationError from django.test import SimpleTestCase, ignore_warnings diff --git a/tests/forms_tests/field_tests/test_combofield.py b/tests/forms_tests/field_tests/test_combofield.py index 6ca91233bc8b..b40e7ba88587 100644 --- a/tests/forms_tests/field_tests/test_combofield.py +++ b/tests/forms_tests/field_tests/test_combofield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import CharField, ComboField, EmailField, ValidationError from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_datefield.py b/tests/forms_tests/field_tests/test_datefield.py index b23b5a42ce34..77573e8dcfeb 100644 --- a/tests/forms_tests/field_tests/test_datefield.py +++ b/tests/forms_tests/field_tests/test_datefield.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import date, datetime from django.forms import ( diff --git a/tests/forms_tests/field_tests/test_datetimefield.py b/tests/forms_tests/field_tests/test_datetimefield.py index f83b9b7f7657..a1cfd220534c 100644 --- a/tests/forms_tests/field_tests/test_datetimefield.py +++ b/tests/forms_tests/field_tests/test_datetimefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.forms import DateTimeField, ValidationError diff --git a/tests/forms_tests/field_tests/test_decimalfield.py b/tests/forms_tests/field_tests/test_decimalfield.py index 02600bcb5b47..c8fd95fd6848 100644 --- a/tests/forms_tests/field_tests/test_decimalfield.py +++ b/tests/forms_tests/field_tests/test_decimalfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import decimal from django.forms import DecimalField, NumberInput, ValidationError, Widget diff --git a/tests/forms_tests/field_tests/test_durationfield.py b/tests/forms_tests/field_tests/test_durationfield.py index 28fd245a7972..ce578ff82ff1 100644 --- a/tests/forms_tests/field_tests/test_durationfield.py +++ b/tests/forms_tests/field_tests/test_durationfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.forms import DurationField diff --git a/tests/forms_tests/field_tests/test_emailfield.py b/tests/forms_tests/field_tests/test_emailfield.py index 906a6cf5ffd3..15481689b0ef 100644 --- a/tests/forms_tests/field_tests/test_emailfield.py +++ b/tests/forms_tests/field_tests/test_emailfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.forms import EmailField, ValidationError from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_filefield.py b/tests/forms_tests/field_tests/test_filefield.py index 2c08075f3f30..1862475a5a84 100644 --- a/tests/forms_tests/field_tests/test_filefield.py +++ b/tests/forms_tests/field_tests/test_filefield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import pickle from django.core.files.uploadedfile import SimpleUploadedFile diff --git a/tests/forms_tests/field_tests/test_filepathfield.py b/tests/forms_tests/field_tests/test_filepathfield.py index 60336d0dcf1c..07ebe67f06ca 100644 --- a/tests/forms_tests/field_tests/test_filepathfield.py +++ b/tests/forms_tests/field_tests/test_filepathfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os.path from django.forms import FilePathField, ValidationError, forms diff --git a/tests/forms_tests/field_tests/test_floatfield.py b/tests/forms_tests/field_tests/test_floatfield.py index d4ef4f496b9d..83209d7c6688 100644 --- a/tests/forms_tests/field_tests/test_floatfield.py +++ b/tests/forms_tests/field_tests/test_floatfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import FloatField, NumberInput, ValidationError from django.test import SimpleTestCase from django.utils import formats, translation diff --git a/tests/forms_tests/field_tests/test_genericipaddressfield.py b/tests/forms_tests/field_tests/test_genericipaddressfield.py index 011630fb0d08..97a83e38aedd 100644 --- a/tests/forms_tests/field_tests/test_genericipaddressfield.py +++ b/tests/forms_tests/field_tests/test_genericipaddressfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import GenericIPAddressField, ValidationError from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_imagefield.py b/tests/forms_tests/field_tests/test_imagefield.py index ee0e1e3b7397..326735bf60d2 100644 --- a/tests/forms_tests/field_tests/test_imagefield.py +++ b/tests/forms_tests/field_tests/test_imagefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import unittest diff --git a/tests/forms_tests/field_tests/test_integerfield.py b/tests/forms_tests/field_tests/test_integerfield.py index cd648279a660..f89885027b6e 100644 --- a/tests/forms_tests/field_tests/test_integerfield.py +++ b/tests/forms_tests/field_tests/test_integerfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.forms import IntegerField, Textarea, ValidationError from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_multiplechoicefield.py b/tests/forms_tests/field_tests/test_multiplechoicefield.py index 85b70498546d..dee916bd8eb0 100644 --- a/tests/forms_tests/field_tests/test_multiplechoicefield.py +++ b/tests/forms_tests/field_tests/test_multiplechoicefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import MultipleChoiceField, ValidationError from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_nullbooleanfield.py b/tests/forms_tests/field_tests/test_nullbooleanfield.py index ff4a16060e88..ff57394f07cb 100644 --- a/tests/forms_tests/field_tests/test_nullbooleanfield.py +++ b/tests/forms_tests/field_tests/test_nullbooleanfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import Form, HiddenInput, NullBooleanField, RadioSelect from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_regexfield.py b/tests/forms_tests/field_tests/test_regexfield.py index 02a627b8d266..bd8d6dda097b 100644 --- a/tests/forms_tests/field_tests/test_regexfield.py +++ b/tests/forms_tests/field_tests/test_regexfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import re from django.forms import RegexField, ValidationError diff --git a/tests/forms_tests/field_tests/test_slugfield.py b/tests/forms_tests/field_tests/test_slugfield.py index 1a522c9d4f3a..d883f7f5c950 100644 --- a/tests/forms_tests/field_tests/test_slugfield.py +++ b/tests/forms_tests/field_tests/test_slugfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.forms import SlugField from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_splitdatetimefield.py b/tests/forms_tests/field_tests/test_splitdatetimefield.py index db8df414414b..be70edd3d4de 100644 --- a/tests/forms_tests/field_tests/test_splitdatetimefield.py +++ b/tests/forms_tests/field_tests/test_splitdatetimefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.forms import SplitDateTimeField, ValidationError diff --git a/tests/forms_tests/field_tests/test_timefield.py b/tests/forms_tests/field_tests/test_timefield.py index 3c73cc37b663..bd8a67992fd9 100644 --- a/tests/forms_tests/field_tests/test_timefield.py +++ b/tests/forms_tests/field_tests/test_timefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.forms import TimeField, ValidationError diff --git a/tests/forms_tests/field_tests/test_typedchoicefield.py b/tests/forms_tests/field_tests/test_typedchoicefield.py index 26a7a25d0558..c08a8bb6110c 100644 --- a/tests/forms_tests/field_tests/test_typedchoicefield.py +++ b/tests/forms_tests/field_tests/test_typedchoicefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import decimal from django.forms import TypedChoiceField, ValidationError diff --git a/tests/forms_tests/field_tests/test_typedmultiplechoicefield.py b/tests/forms_tests/field_tests/test_typedmultiplechoicefield.py index 94823e0594dd..b33d26bdaaec 100644 --- a/tests/forms_tests/field_tests/test_typedmultiplechoicefield.py +++ b/tests/forms_tests/field_tests/test_typedmultiplechoicefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import decimal from django.forms import TypedMultipleChoiceField, ValidationError diff --git a/tests/forms_tests/field_tests/test_urlfield.py b/tests/forms_tests/field_tests/test_urlfield.py index d0b6d004822d..715e8e99e0d7 100644 --- a/tests/forms_tests/field_tests/test_urlfield.py +++ b/tests/forms_tests/field_tests/test_urlfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.forms import URLField, ValidationError from django.test import SimpleTestCase diff --git a/tests/forms_tests/field_tests/test_uuidfield.py b/tests/forms_tests/field_tests/test_uuidfield.py index fe432e072564..08498ab9c9e3 100644 --- a/tests/forms_tests/field_tests/test_uuidfield.py +++ b/tests/forms_tests/field_tests/test_uuidfield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import uuid from django.forms import UUIDField, ValidationError diff --git a/tests/forms_tests/models.py b/tests/forms_tests/models.py index cf770abb023d..be1b66bce664 100644 --- a/tests/forms_tests/models.py +++ b/tests/forms_tests/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import itertools import tempfile diff --git a/tests/forms_tests/tests/test_error_messages.py b/tests/forms_tests/tests/test_error_messages.py index 4ae550efc25f..eb7debf936ba 100644 --- a/tests/forms_tests/tests/test_error_messages.py +++ b/tests/forms_tests/tests/test_error_messages.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core.files.uploadedfile import SimpleUploadedFile from django.forms import ( BooleanField, CharField, ChoiceField, DateField, DateTimeField, diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index 2b93575bf27f..b8ced2425c23 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import copy import datetime import json diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py index 29f0befc18df..125ed273e969 100644 --- a/tests/forms_tests/tests/test_formsets.py +++ b/tests/forms_tests/tests/test_formsets.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from collections import Counter diff --git a/tests/forms_tests/tests/test_i18n.py b/tests/forms_tests/tests/test_i18n.py index 56225e0dd567..a8a2cf384678 100644 --- a/tests/forms_tests/tests/test_i18n.py +++ b/tests/forms_tests/tests/test_i18n.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import ( CharField, ChoiceField, Form, IntegerField, RadioSelect, Select, TextInput, ) diff --git a/tests/forms_tests/tests/test_media.py b/tests/forms_tests/tests/test_media.py index d0d226d06e94..cd5cc1f8049a 100644 --- a/tests/forms_tests/tests/test_media.py +++ b/tests/forms_tests/tests/test_media.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.forms import CharField, Form, Media, MultiWidget, TextInput from django.template import Context, Template from django.test import SimpleTestCase, override_settings diff --git a/tests/forms_tests/tests/test_utils.py b/tests/forms_tests/tests/test_utils.py index f95c95632222..d0dfaad3703d 100644 --- a/tests/forms_tests/tests/test_utils.py +++ b/tests/forms_tests/tests/test_utils.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import copy from django.core.exceptions import ValidationError diff --git a/tests/forms_tests/tests/test_validators.py b/tests/forms_tests/tests/test_validators.py index 19d0d91fd5e2..c5e1f1e980dc 100644 --- a/tests/forms_tests/tests/test_validators.py +++ b/tests/forms_tests/tests/test_validators.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re from unittest import TestCase diff --git a/tests/forms_tests/tests/test_widgets.py b/tests/forms_tests/tests/test_widgets.py index f67954fd3a5f..3e137532b97a 100644 --- a/tests/forms_tests/tests/test_widgets.py +++ b/tests/forms_tests/tests/test_widgets.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.admin.tests import AdminSeleniumTestCase from django.test import override_settings from django.urls import reverse diff --git a/tests/forms_tests/tests/tests.py b/tests/forms_tests/tests/tests.py index f0007fbe8f64..025b74976213 100644 --- a/tests/forms_tests/tests/tests.py +++ b/tests/forms_tests/tests/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from django.core.files.uploadedfile import SimpleUploadedFile diff --git a/tests/forms_tests/widget_tests/test_select.py b/tests/forms_tests/widget_tests/test_select.py index d2660ea787d7..23d6126810e9 100644 --- a/tests/forms_tests/widget_tests/test_select.py +++ b/tests/forms_tests/widget_tests/test_select.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import copy from django.forms import Select diff --git a/tests/forms_tests/widget_tests/test_textinput.py b/tests/forms_tests/widget_tests/test_textinput.py index 65b5da4e0366..906687d97130 100644 --- a/tests/forms_tests/widget_tests/test_textinput.py +++ b/tests/forms_tests/widget_tests/test_textinput.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.forms import TextInput from django.utils.safestring import mark_safe diff --git a/tests/forms_tests/widget_tests/test_widget.py b/tests/forms_tests/widget_tests/test_widget.py index 595748a7b221..368c315be797 100644 --- a/tests/forms_tests/widget_tests/test_widget.py +++ b/tests/forms_tests/widget_tests/test_widget.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms import Widget from django.forms.widgets import Input diff --git a/tests/generic_inline_admin/tests.py b/tests/generic_inline_admin/tests.py index a25294beda21..203d9d7f3e84 100644 --- a/tests/generic_inline_admin/tests.py +++ b/tests/generic_inline_admin/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.contrib import admin from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User diff --git a/tests/generic_relations/models.py b/tests/generic_relations/models.py index 7522f5b4cd89..f1748b743326 100644 --- a/tests/generic_relations/models.py +++ b/tests/generic_relations/models.py @@ -9,8 +9,6 @@ from complete). """ -from __future__ import unicode_literals - from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) diff --git a/tests/generic_relations/tests.py b/tests/generic_relations/tests.py index 540c3456f200..5bfea72cf1dc 100644 --- a/tests/generic_relations/tests.py +++ b/tests/generic_relations/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.contrib.contenttypes.forms import generic_inlineformset_factory from django.contrib.contenttypes.models import ContentType diff --git a/tests/generic_views/forms.py b/tests/generic_views/forms.py index 1ee26afc8fcf..fd8106d1a89d 100644 --- a/tests/generic_views/forms.py +++ b/tests/generic_views/forms.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from .models import Author diff --git a/tests/generic_views/test_base.py b/tests/generic_views/test_base.py index a667a4e49522..be89592dbc0d 100644 --- a/tests/generic_views/test_base.py +++ b/tests/generic_views/test_base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import time import unittest diff --git a/tests/generic_views/test_dates.py b/tests/generic_views/test_dates.py index 9b7c20ec7386..d18c8189890c 100644 --- a/tests/generic_views/test_dates.py +++ b/tests/generic_views/test_dates.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from django.core.exceptions import ImproperlyConfigured diff --git a/tests/generic_views/test_detail.py b/tests/generic_views/test_detail.py index 4c91f6eeb0c9..da20db066e26 100644 --- a/tests/generic_views/test_detail.py +++ b/tests/generic_views/test_detail.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist diff --git a/tests/generic_views/test_edit.py b/tests/generic_views/test_edit.py index c1b9eba9d89b..3a68fc409804 100644 --- a/tests/generic_views/test_edit.py +++ b/tests/generic_views/test_edit.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.core.exceptions import ImproperlyConfigured from django.test import SimpleTestCase, TestCase, override_settings diff --git a/tests/generic_views/test_list.py b/tests/generic_views/test_list.py index 5a22abd33b33..d5851d4ff809 100644 --- a/tests/generic_views/test_list.py +++ b/tests/generic_views/test_list.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from django.core.exceptions import ImproperlyConfigured diff --git a/tests/generic_views/urls.py b/tests/generic_views/urls.py index 9f2d8429fc84..3475bfc3579e 100644 --- a/tests/generic_views/urls.py +++ b/tests/generic_views/urls.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.conf.urls import url from django.contrib.auth import views as auth_views from django.contrib.auth.decorators import login_required diff --git a/tests/generic_views/views.py b/tests/generic_views/views.py index e46bc091434d..b466f3a324ea 100644 --- a/tests/generic_views/views.py +++ b/tests/generic_views/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator from django.urls import reverse, reverse_lazy diff --git a/tests/get_earliest_or_latest/tests.py b/tests/get_earliest_or_latest/tests.py index 56d48d071015..2322e0a91cbf 100644 --- a/tests/get_earliest_or_latest/tests.py +++ b/tests/get_earliest_or_latest/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime from django.test import TestCase diff --git a/tests/get_object_or_404/tests.py b/tests/get_object_or_404/tests.py index bf10ea310972..b5a233568d9c 100644 --- a/tests/get_object_or_404/tests.py +++ b/tests/get_object_or_404/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.http import Http404 from django.shortcuts import get_list_or_404, get_object_or_404 from django.test import TestCase diff --git a/tests/get_or_create/models.py b/tests/get_or_create/models.py index 03944344081a..5d6e69de3a71 100644 --- a/tests/get_or_create/models.py +++ b/tests/get_or_create/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/get_or_create/tests.py b/tests/get_or_create/tests.py index d727bdee5d48..27a0cb77377f 100644 --- a/tests/get_or_create/tests.py +++ b/tests/get_or_create/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import time import traceback from datetime import date, datetime, timedelta diff --git a/tests/gis_tests/distapp/tests.py b/tests/gis_tests/distapp/tests.py index 01f0a620dc16..9d67b7b01398 100644 --- a/tests/gis_tests/distapp/tests.py +++ b/tests/gis_tests/distapp/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.gis.db.models.functions import ( Area, Distance, Length, Perimeter, Transform, ) diff --git a/tests/gis_tests/gdal_tests/test_srs.py b/tests/gis_tests/gdal_tests/test_srs.py index d03d8dcfd3e9..9bc6c0a2c5c5 100644 --- a/tests/gis_tests/gdal_tests/test_srs.py +++ b/tests/gis_tests/gdal_tests/test_srs.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import unittest from unittest import skipUnless diff --git a/tests/gis_tests/geo3d/tests.py b/tests/gis_tests/geo3d/tests.py index 946928b91936..e32611934a5a 100644 --- a/tests/gis_tests/geo3d/tests.py +++ b/tests/gis_tests/geo3d/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import re diff --git a/tests/gis_tests/geoadmin/tests.py b/tests/gis_tests/geoadmin/tests.py index 88c39340209d..23fa8071b36c 100644 --- a/tests/gis_tests/geoadmin/tests.py +++ b/tests/gis_tests/geoadmin/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.gis import admin from django.contrib.gis.geos import Point from django.test import TestCase, override_settings, skipUnlessDBFeature diff --git a/tests/gis_tests/geoapp/feeds.py b/tests/gis_tests/geoapp/feeds.py index 4a0ec7647dee..185f3b56e374 100644 --- a/tests/gis_tests/geoapp/feeds.py +++ b/tests/gis_tests/geoapp/feeds.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.gis import feeds from .models import City diff --git a/tests/gis_tests/geoapp/test_feeds.py b/tests/gis_tests/geoapp/test_feeds.py index 09745547376a..c8fd32802f1d 100644 --- a/tests/gis_tests/geoapp/test_feeds.py +++ b/tests/gis_tests/geoapp/test_feeds.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from xml.dom import minidom from django.conf import settings diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index e551de6890b2..2767b7974b71 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import re from decimal import Decimal diff --git a/tests/gis_tests/geoapp/test_regress.py b/tests/gis_tests/geoapp/test_regress.py index a075d447efa6..2d62349dbb7f 100644 --- a/tests/gis_tests/geoapp/test_regress.py +++ b/tests/gis_tests/geoapp/test_regress.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - from datetime import datetime from django.contrib.gis.db.models import Extent diff --git a/tests/gis_tests/geoapp/test_serializers.py b/tests/gis_tests/geoapp/test_serializers.py index f82edfa53e44..7f756e154476 100644 --- a/tests/gis_tests/geoapp/test_serializers.py +++ b/tests/gis_tests/geoapp/test_serializers.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import json from django.contrib.gis.geos import LinearRing, Point, Polygon diff --git a/tests/gis_tests/geoapp/test_sitemaps.py b/tests/gis_tests/geoapp/test_sitemaps.py index e17a48a62448..61e06df7285d 100644 --- a/tests/gis_tests/geoapp/test_sitemaps.py +++ b/tests/gis_tests/geoapp/test_sitemaps.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import zipfile from io import BytesIO from xml.dom import minidom diff --git a/tests/gis_tests/geoapp/tests.py b/tests/gis_tests/geoapp/tests.py index cbbf0357bc92..4324364c0da9 100644 --- a/tests/gis_tests/geoapp/tests.py +++ b/tests/gis_tests/geoapp/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import tempfile from django.contrib.gis import gdal diff --git a/tests/gis_tests/geoapp/urls.py b/tests/gis_tests/geoapp/urls.py index 40a48053c723..0e148bf4f38f 100644 --- a/tests/gis_tests/geoapp/urls.py +++ b/tests/gis_tests/geoapp/urls.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from django.contrib.gis import views as gis_views from django.contrib.gis.sitemaps import views as gis_sitemap_views diff --git a/tests/gis_tests/geogapp/tests.py b/tests/gis_tests/geogapp/tests.py index d9f02184eade..7112f0238eb0 100644 --- a/tests/gis_tests/geogapp/tests.py +++ b/tests/gis_tests/geogapp/tests.py @@ -1,8 +1,6 @@ """ Tests for geography support in PostGIS """ -from __future__ import unicode_literals - import os from unittest import skipIf, skipUnless diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index 46583c9605ac..ff28eebf0f52 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import ctypes import json import random diff --git a/tests/gis_tests/geos_tests/test_io.py b/tests/gis_tests/geos_tests/test_io.py index 47995bf88c57..81e0ff357fc7 100644 --- a/tests/gis_tests/geos_tests/test_io.py +++ b/tests/gis_tests/geos_tests/test_io.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import binascii from unittest import skipUnless diff --git a/tests/gis_tests/gis_migrations/test_commands.py b/tests/gis_tests/gis_migrations/test_commands.py index 65bd035b8c24..c9bf3773feca 100644 --- a/tests/gis_tests/gis_migrations/test_commands.py +++ b/tests/gis_tests/gis_migrations/test_commands.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.management import call_command from django.db import connection from django.test import TransactionTestCase, skipUnlessDBFeature diff --git a/tests/gis_tests/gis_migrations/test_operations.py b/tests/gis_tests/gis_migrations/test_operations.py index 26ff16feedeb..0c8853a9f3c1 100644 --- a/tests/gis_tests/gis_migrations/test_operations.py +++ b/tests/gis_tests/gis_migrations/test_operations.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from unittest import skipIf from django.contrib.gis.db.models import fields diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py index 75865997dc8a..b451603e7ce1 100644 --- a/tests/gis_tests/inspectapp/tests.py +++ b/tests/gis_tests/inspectapp/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import re diff --git a/tests/gis_tests/layermap/tests.py b/tests/gis_tests/layermap/tests.py index a8a352eda504..0f59132b0db3 100644 --- a/tests/gis_tests/layermap/tests.py +++ b/tests/gis_tests/layermap/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import unittest from copy import copy diff --git a/tests/gis_tests/relatedapp/tests.py b/tests/gis_tests/relatedapp/tests.py index 861b6ee2d927..b8da0f24f1d2 100644 --- a/tests/gis_tests/relatedapp/tests.py +++ b/tests/gis_tests/relatedapp/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.gis.db.models import Collect, Count, Extent, F, Union from django.contrib.gis.geometry.backend import Geometry from django.contrib.gis.geos import GEOSGeometry, MultiPoint, Point diff --git a/tests/gis_tests/test_geoip2.py b/tests/gis_tests/test_geoip2.py index 7db1648cca55..54f20412a4f7 100644 --- a/tests/gis_tests/test_geoip2.py +++ b/tests/gis_tests/test_geoip2.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import unittest from unittest import skipUnless diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py index a4209174211b..bae20439189c 100644 --- a/tests/handlers/tests.py +++ b/tests/handlers/tests.py @@ -1,7 +1,3 @@ -# -*- coding: utf-8 -*- - -from __future__ import unicode_literals - import unittest from django.core.exceptions import ImproperlyConfigured diff --git a/tests/handlers/urls.py b/tests/handlers/urls.py index 9d23fd3fa7c5..1a228590931a 100644 --- a/tests/handlers/urls.py +++ b/tests/handlers/urls.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from . import views diff --git a/tests/handlers/views.py b/tests/handlers/views.py index 21c1387f0812..22b94de3b90e 100644 --- a/tests/handlers/views.py +++ b/tests/handlers/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import SuspiciousOperation from django.db import connection, transaction from django.http import HttpResponse, StreamingHttpResponse diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 3ab21751f517..d9885ea40ccd 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import copy import json import os diff --git a/tests/humanize_tests/tests.py b/tests/humanize_tests/tests.py index a3cc512239e4..90a5155cfb8a 100644 --- a/tests/humanize_tests/tests.py +++ b/tests/humanize_tests/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from decimal import Decimal diff --git a/tests/i18n/contenttypes/tests.py b/tests/i18n/contenttypes/tests.py index 890fa1156b85..2a14e25972ca 100644 --- a/tests/i18n/contenttypes/tests.py +++ b/tests/i18n/contenttypes/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from django.contrib.contenttypes.models import ContentType diff --git a/tests/i18n/patterns/tests.py b/tests/i18n/patterns/tests.py index 6706e32e8409..a889125e82b8 100644 --- a/tests/i18n/patterns/tests.py +++ b/tests/i18n/patterns/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from django.conf import settings diff --git a/tests/i18n/test_compilation.py b/tests/i18n/test_compilation.py index b33338800a28..d17078e29011 100644 --- a/tests/i18n/test_compilation.py +++ b/tests/i18n/test_compilation.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import gettext as gettext_module import os import stat diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 9311a1e7f075..33e136e1dd1c 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import io import os import re diff --git a/tests/i18n/test_percents.py b/tests/i18n/test_percents.py index 6e39b59a7f72..48d62ada05b1 100644 --- a/tests/i18n/test_percents.py +++ b/tests/i18n/test_percents.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import os from django.template import Context, Template diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 6e2269da4c67..2b9793109b43 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import datetime import decimal import gettext as gettext_module diff --git a/tests/i18n/urls.py b/tests/i18n/urls.py index af2abb9fb847..911a1cf8e78e 100644 --- a/tests/i18n/urls.py +++ b/tests/i18n/urls.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from django.conf.urls.i18n import i18n_patterns from django.http import HttpResponse, StreamingHttpResponse diff --git a/tests/inline_formsets/models.py b/tests/inline_formsets/models.py index 70f9008d8bfb..42cf810f5349 100644 --- a/tests/inline_formsets/models.py +++ b/tests/inline_formsets/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/inline_formsets/tests.py b/tests/inline_formsets/tests.py index 6e96f51e6feb..0fb2fd2f026d 100644 --- a/tests/inline_formsets/tests.py +++ b/tests/inline_formsets/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.forms.models import ModelForm, inlineformset_factory from django.test import TestCase, skipUnlessDBFeature from django.utils import six diff --git a/tests/inspectdb/models.py b/tests/inspectdb/models.py index 868f3ba4fe92..668fc51aed35 100644 --- a/tests/inspectdb/models.py +++ b/tests/inspectdb/models.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index daa0800d7c68..1293ff68acda 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import re from unittest import skipUnless diff --git a/tests/introspection/models.py b/tests/introspection/models.py index b8c7a83b9f90..023e622beb8a 100644 --- a/tests/introspection/models.py +++ b/tests/introspection/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index 816c4a9b37ac..a85748d958c5 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from unittest import skipUnless from django.db import connection diff --git a/tests/invalid_models_tests/test_backend_specific.py b/tests/invalid_models_tests/test_backend_specific.py index 05ba04a4ea1c..6321b6d7be45 100644 --- a/tests/invalid_models_tests/test_backend_specific.py +++ b/tests/invalid_models_tests/test_backend_specific.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - from django.core.checks import Error from django.db import connections, models from django.test import SimpleTestCase, mock diff --git a/tests/invalid_models_tests/test_models.py b/tests/invalid_models_tests/test_models.py index 662035af7542..7bb949769085 100644 --- a/tests/invalid_models_tests/test_models.py +++ b/tests/invalid_models_tests/test_models.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import unittest from django.conf import settings diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index 3f601e1fcfc7..61f93e85788b 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import unittest from django.core.checks import Error, Warning as DjangoWarning diff --git a/tests/invalid_models_tests/test_relative_fields.py b/tests/invalid_models_tests/test_relative_fields.py index 2165e6dfb5e6..5fd76229e916 100644 --- a/tests/invalid_models_tests/test_relative_fields.py +++ b/tests/invalid_models_tests/test_relative_fields.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - from django.core.checks import Error, Warning as DjangoWarning from django.db import models from django.db.models.fields.related import ForeignObject diff --git a/tests/known_related_objects/tests.py b/tests/known_related_objects/tests.py index bb664a810246..c0afe4f0b915 100644 --- a/tests/known_related_objects/tests.py +++ b/tests/known_related_objects/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import Organiser, Pool, PoolStyle, Tournament diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py index 0557ea182ba2..134cc7180884 100644 --- a/tests/logging_tests/tests.py +++ b/tests/logging_tests/tests.py @@ -1,6 +1,3 @@ -# -*- coding:utf-8 -*- -from __future__ import unicode_literals - import logging from contextlib import contextmanager diff --git a/tests/logging_tests/urls.py b/tests/logging_tests/urls.py index ca6dd9b430df..fa2c0fcd0261 100644 --- a/tests/logging_tests/urls.py +++ b/tests/logging_tests/urls.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from . import views diff --git a/tests/logging_tests/urls_i18n.py b/tests/logging_tests/urls_i18n.py index 80ce990413c2..220f5e4732e3 100644 --- a/tests/logging_tests/urls_i18n.py +++ b/tests/logging_tests/urls_i18n.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from django.conf.urls.i18n import i18n_patterns from django.http import HttpResponse diff --git a/tests/logging_tests/views.py b/tests/logging_tests/views.py index a36250970030..cb7112e43528 100644 --- a/tests/logging_tests/views.py +++ b/tests/logging_tests/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import DisallowedHost, SuspiciousOperation from django.http import HttpResponse diff --git a/tests/lookup/models.py b/tests/lookup/models.py index cfc0cecb9953..3490422f69a0 100644 --- a/tests/lookup/models.py +++ b/tests/lookup/models.py @@ -4,8 +4,6 @@ This demonstrates features of the database API. """ -from __future__ import unicode_literals - from django.db import models from django.utils import six from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/lookup/test_timefield.py b/tests/lookup/test_timefield.py index 0a96992a32ee..6ef1d794e228 100644 --- a/tests/lookup/test_timefield.py +++ b/tests/lookup/test_timefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import Alarm diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py index 78e68dfc4a99..1da7084e4813 100644 --- a/tests/lookup/tests.py +++ b/tests/lookup/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import collections from datetime import datetime from operator import attrgetter diff --git a/tests/m2m_and_m2o/models.py b/tests/m2m_and_m2o/models.py index 60f5c43733c9..621c56ca1aea 100644 --- a/tests/m2m_and_m2o/models.py +++ b/tests/m2m_and_m2o/models.py @@ -3,8 +3,6 @@ Make sure to set ``related_name`` if you use relationships to the same table. """ -from __future__ import unicode_literals - from django.db import models from django.utils import six from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/m2m_intermediary/models.py b/tests/m2m_intermediary/models.py index 3e73164e6fcf..dbd822df513a 100644 --- a/tests/m2m_intermediary/models.py +++ b/tests/m2m_intermediary/models.py @@ -9,8 +9,6 @@ field, which specifies the ``Reporter``'s position for the given article (e.g. "Staff writer"). """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/m2m_intermediary/tests.py b/tests/m2m_intermediary/tests.py index ce4e1860045d..d429bf6516f1 100644 --- a/tests/m2m_intermediary/tests.py +++ b/tests/m2m_intermediary/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime from django.test import TestCase diff --git a/tests/m2m_multiple/tests.py b/tests/m2m_multiple/tests.py index 9d605423ad2f..1fa27677649f 100644 --- a/tests/m2m_multiple/tests.py +++ b/tests/m2m_multiple/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime from django.test import TestCase diff --git a/tests/m2m_recursive/tests.py b/tests/m2m_recursive/tests.py index c6573800a810..b2667a8d52cc 100644 --- a/tests/m2m_recursive/tests.py +++ b/tests/m2m_recursive/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from operator import attrgetter from django.test import TestCase diff --git a/tests/m2m_regress/tests.py b/tests/m2m_regress/tests.py index 3c882c595aa8..6d4a4f02edbc 100644 --- a/tests/m2m_regress/tests.py +++ b/tests/m2m_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import FieldError from django.test import TestCase diff --git a/tests/m2m_through/tests.py b/tests/m2m_through/tests.py index 47cbbeecda52..089018870378 100644 --- a/tests/m2m_through/tests.py +++ b/tests/m2m_through/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime from operator import attrgetter diff --git a/tests/m2m_through_regress/models.py b/tests/m2m_through_regress/models.py index adde24dcf9d3..9f0f44cd2132 100644 --- a/tests/m2m_through_regress/models.py +++ b/tests/m2m_through_regress/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/m2m_through_regress/test_multitable.py b/tests/m2m_through_regress/test_multitable.py index f07af40f6ded..1ae76376fc10 100644 --- a/tests/m2m_through_regress/test_multitable.py +++ b/tests/m2m_through_regress/test_multitable.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import ( diff --git a/tests/m2m_through_regress/tests.py b/tests/m2m_through_regress/tests.py index ca47830290f0..a1739f296023 100644 --- a/tests/m2m_through_regress/tests.py +++ b/tests/m2m_through_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.auth.models import User from django.core import management from django.test import TestCase diff --git a/tests/m2o_recursive/tests.py b/tests/m2o_recursive/tests.py index 8e730d48a701..0f7ee9071d48 100644 --- a/tests/m2o_recursive/tests.py +++ b/tests/m2o_recursive/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import Category, Person diff --git a/tests/mail/test_sendtestemail.py b/tests/mail/test_sendtestemail.py index b1494bf3dfab..d7457c9a1c6c 100644 --- a/tests/mail/test_sendtestemail.py +++ b/tests/mail/test_sendtestemail.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core import mail from django.core.management import call_command from django.test import SimpleTestCase, override_settings diff --git a/tests/mail/tests.py b/tests/mail/tests.py index fd2a185fb534..ba7ff44714ef 100644 --- a/tests/mail/tests.py +++ b/tests/mail/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import asyncore import base64 import mimetypes diff --git a/tests/managers_regress/tests.py b/tests/managers_regress/tests.py index cda90ac2b679..1b3e0a1635ab 100644 --- a/tests/managers_regress/tests.py +++ b/tests/managers_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.template import Context, Template from django.test import TestCase, override_settings diff --git a/tests/many_to_many/models.py b/tests/many_to_many/models.py index a199cd77e24f..b0e708ebb45e 100644 --- a/tests/many_to_many/models.py +++ b/tests/many_to_many/models.py @@ -6,8 +6,6 @@ In this example, an ``Article`` can be published in multiple ``Publication`` objects, and a ``Publication`` has multiple ``Article`` objects. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/many_to_many/tests.py b/tests/many_to_many/tests.py index e5bc51be47a1..d81d88b17624 100644 --- a/tests/many_to_many/tests.py +++ b/tests/many_to_many/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import transaction from django.test import TestCase diff --git a/tests/many_to_one/models.py b/tests/many_to_one/models.py index abc9c7d82658..09578b56a31f 100644 --- a/tests/many_to_one/models.py +++ b/tests/many_to_one/models.py @@ -3,8 +3,6 @@ To define a many-to-one relationship, use ``ForeignKey()``. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/many_to_one_null/tests.py b/tests/many_to_one_null/tests.py index dc49c61f6902..77b8fd7c2581 100644 --- a/tests/many_to_one_null/tests.py +++ b/tests/many_to_one_null/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import Article, Car, Driver, Reporter diff --git a/tests/max_lengths/tests.py b/tests/max_lengths/tests.py index fa3cd4bddcf0..fb81a7f47302 100644 --- a/tests/max_lengths/tests.py +++ b/tests/max_lengths/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from .models import PersonWithCustomMaxLengths, PersonWithDefaultMaxLengths diff --git a/tests/middleware/tests.py b/tests/middleware/tests.py index 1d473ef558cb..43ea0748a0de 100644 --- a/tests/middleware/tests.py +++ b/tests/middleware/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import gzip import random import re diff --git a/tests/middleware_exceptions/middleware.py b/tests/middleware_exceptions/middleware.py index b1de76a5cee9..e704b9f2b5d4 100644 --- a/tests/middleware_exceptions/middleware.py +++ b/tests/middleware_exceptions/middleware.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.http import Http404, HttpResponse from django.template import engines from django.template.response import TemplateResponse diff --git a/tests/migrate_signals/custom_migrations/0001_initial.py b/tests/migrate_signals/custom_migrations/0001_initial.py index 6e969d29ed9e..91b106ef0cde 100644 --- a/tests/migrate_signals/custom_migrations/0001_initial.py +++ b/tests/migrate_signals/custom_migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migration_test_data_persistence/migrations/0001_initial.py b/tests/migration_test_data_persistence/migrations/0001_initial.py index 6c19c4c81c2e..0f455ed43b13 100644 --- a/tests/migration_test_data_persistence/migrations/0001_initial.py +++ b/tests/migration_test_data_persistence/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migration_test_data_persistence/migrations/0002_add_book.py b/tests/migration_test_data_persistence/migrations/0002_add_book.py index 6ce7fff26bec..51c13effd9a4 100644 --- a/tests/migration_test_data_persistence/migrations/0002_add_book.py +++ b/tests/migration_test_data_persistence/migrations/0002_add_book.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/deprecated_field_migrations/0001_initial.py b/tests/migrations/deprecated_field_migrations/0001_initial.py index 624ea680162e..8665d5b2ff4a 100644 --- a/tests/migrations/deprecated_field_migrations/0001_initial.py +++ b/tests/migrations/deprecated_field_migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/deprecated_field_migrations/0002_remove_ipaddressfield_ip.py b/tests/migrations/deprecated_field_migrations/0002_remove_ipaddressfield_ip.py index 12e9739bca2a..1b27bf536d29 100644 --- a/tests/migrations/deprecated_field_migrations/0002_remove_ipaddressfield_ip.py +++ b/tests/migrations/deprecated_field_migrations/0002_remove_ipaddressfield_ip.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0001_initial.py index 8df44dfeef27..48664b2a0413 100644 --- a/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0002_alter_id.py b/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0002_alter_id.py index ffce7dbd70a3..18bc91ad7251 100644 --- a/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0002_alter_id.py +++ b/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0002_alter_id.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/alter_fk/book_app/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/alter_fk/book_app/migrations/0001_initial.py index 7769e4b32a61..46543caeee13 100644 --- a/tests/migrations/migrations_test_apps/alter_fk/book_app/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/alter_fk/book_app/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0001_initial.py index 146d6cee3e72..ddf070a8cd19 100644 --- a/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_conflicting_second.py b/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_conflicting_second.py index cbe5bfb13e6f..16fd7dbfee0a 100644 --- a/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_conflicting_second.py +++ b/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_conflicting_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_second.py b/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_second.py index 16d42f8736d1..d612af572684 100644 --- a/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_second.py +++ b/tests/migrations/migrations_test_apps/conflicting_app_with_dependencies/migrations/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0001_initial.py index 09cda3c61f23..6351b0d21232 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0002_a2.py b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0002_a2.py index e528f9ee5ebf..ab943b9c777e 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0002_a2.py +++ b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0002_a2.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0003_a3.py b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0003_a3.py index 8dd1bf977b96..42b5853d3c9d 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0003_a3.py +++ b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0003_a3.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0004_a4.py b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0004_a4.py index 5a1ebfb68407..b7a0bcb8a7c0 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0004_a4.py +++ b/tests/migrations/migrations_test_apps/lookuperror_a/migrations/0004_a4.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0001_initial.py index 9cd50e24b8ac..def52ae789ef 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0002_b2.py b/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0002_b2.py index 7e91505cd2a0..a2ac5e1ba778 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0002_b2.py +++ b/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0002_b2.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0003_b3.py b/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0003_b3.py index 746c49d0a10e..1c76e73ec138 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0003_b3.py +++ b/tests/migrations/migrations_test_apps/lookuperror_b/migrations/0003_b3.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0001_initial.py index bf9ec3d1718c..8453148b8750 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0002_c2.py b/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0002_c2.py index ca557688aa15..a928da9ae012 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0002_c2.py +++ b/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0002_c2.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0003_c3.py b/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0003_c3.py index f226cad45836..58119ac8ac06 100644 --- a/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0003_c3.py +++ b/tests/migrations/migrations_test_apps/lookuperror_c/migrations/0003_c3.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/migrated_app/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/migrated_app/migrations/0001_initial.py index 581d5368143f..344bebdfe326 100644 --- a/tests/migrations/migrations_test_apps/migrated_app/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/migrated_app/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/migrated_unapplied_app/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/migrated_unapplied_app/migrations/0001_initial.py index 4913065b105b..800ceed7e4ff 100644 --- a/tests/migrations/migrations_test_apps/migrated_unapplied_app/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/migrated_unapplied_app/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/mutate_state_a/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/mutate_state_a/migrations/0001_initial.py index 5fac74abf387..37c9bf7377fd 100644 --- a/tests/migrations/migrations_test_apps/mutate_state_a/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/mutate_state_a/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0001_initial.py index 73f436b20d6d..51c022dd7fd5 100644 --- a/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0002_add_field.py b/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0002_add_field.py index 45aca3074094..ae968382eb55 100644 --- a/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0002_add_field.py +++ b/tests/migrations/migrations_test_apps/mutate_state_b/migrations/0002_add_field.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/unmigrated_app/models.py b/tests/migrations/migrations_test_apps/unmigrated_app/models.py index 793e03829fd3..03d397c45b75 100644 --- a/tests/migrations/migrations_test_apps/unmigrated_app/models.py +++ b/tests/migrations/migrations_test_apps/unmigrated_app/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models diff --git a/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0001_initial.py b/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0001_initial.py index 581d5368143f..344bebdfe326 100644 --- a/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0001_initial.py +++ b/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_conflicting_second.py b/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_conflicting_second.py index 43e03165e844..ad44031030c9 100644 --- a/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_conflicting_second.py +++ b/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_conflicting_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_second.py b/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_second.py index cb8cfc96d24a..fbf5a9110caa 100644 --- a/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_second.py +++ b/tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/models.py b/tests/migrations/models.py index 6f02e8088e21..b1a10210b6d8 100644 --- a/tests/migrations/models.py +++ b/tests/migrations/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.apps.registry import Apps from django.db import models from django.utils import six diff --git a/tests/migrations/test_add_many_to_many_field_initial/0001_initial.py b/tests/migrations/test_add_many_to_many_field_initial/0001_initial.py index b50b3c68b8e4..50fd06a35f48 100644 --- a/tests/migrations/test_add_many_to_many_field_initial/0001_initial.py +++ b/tests/migrations/test_add_many_to_many_field_initial/0001_initial.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_add_many_to_many_field_initial/0002_initial.py b/tests/migrations/test_add_many_to_many_field_initial/0002_initial.py index 65739a5bb40e..1bc6c8aafa6b 100644 --- a/tests/migrations/test_add_many_to_many_field_initial/0002_initial.py +++ b/tests/migrations/test_add_many_to_many_field_initial/0002_initial.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_auto_now_add/0001_initial.py b/tests/migrations/test_auto_now_add/0001_initial.py index f966cc0e7b33..f1bfb4465789 100644 --- a/tests/migrations/test_auto_now_add/0001_initial.py +++ b/tests/migrations/test_auto_now_add/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_autodetector.py b/tests/migrations/test_autodetector.py index bf3183107184..e30aeb5d1918 100644 --- a/tests/migrations/test_autodetector.py +++ b/tests/migrations/test_autodetector.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import functools import re diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index fd483b7f85bc..ab2e47fabdf8 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import importlib import io @@ -661,7 +658,6 @@ def test_files_content(self): with io.open(initial_file, 'r', encoding='utf-8') as fp: content = fp.read() - self.assertIn('# -*- coding: utf-8 -*-', content) self.assertIn('migrations.CreateModel', content) self.assertIn('initial = True', content) @@ -813,7 +809,6 @@ def test_makemigrations_empty_migration(self): with io.open(initial_file, 'r', encoding='utf-8') as fp: content = fp.read() - self.assertIn('# -*- coding: utf-8 -*-', content) # Remove all whitespace to check for empty dependencies and operations content = content.replace(' ', '') @@ -1040,8 +1035,6 @@ def test_makemigration_merge_dry_run_verbosity_3(self): # Additional output caused by verbosity 3 # The complete merge migration file that would be written - # '\n#' is to verify no bytestring prefix before # - self.assertIn("\n# -*- coding: utf-8 -*-", output) self.assertIn("class Migration(migrations.Migration):", output) self.assertIn("dependencies = [", output) self.assertIn("('migrations', '0002_second')", output) @@ -1087,7 +1080,6 @@ class Meta: # Additional output caused by verbosity 3 # The complete migrations file that would be written - self.assertIn("# -*- coding: utf-8 -*-", out.getvalue()) self.assertIn("class Migration(migrations.Migration):", out.getvalue()) self.assertIn("dependencies = [", out.getvalue()) self.assertIn("('migrations', '0001_initial'),", out.getvalue()) @@ -1211,7 +1203,6 @@ def cmd(migration_count, migration_name, *args): self.assertTrue(os.path.exists(migration_file)) with io.open(migration_file, "r", encoding="utf-8") as fp: content = fp.read() - self.assertIn("# -*- coding: utf-8 -*-", content) content = content.replace(" ", "") return content diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py index b464209a984d..6c91a504301d 100644 --- a/tests/migrations/test_loader.py +++ b/tests/migrations/test_loader.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from unittest import skipIf from django.db import connection, connections diff --git a/tests/migrations/test_migrations/0001_initial.py b/tests/migrations/test_migrations/0001_initial.py index 1fa9664f6a00..8572afa1aac0 100644 --- a/tests/migrations/test_migrations/0001_initial.py +++ b/tests/migrations/test_migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations/0002_second.py b/tests/migrations/test_migrations/0002_second.py index 898676c9d8d0..71c300ceada7 100644 --- a/tests/migrations/test_migrations/0002_second.py +++ b/tests/migrations/test_migrations/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_atomic_operation/0001_initial.py b/tests/migrations/test_migrations_atomic_operation/0001_initial.py index 11bd2f7ce2b0..415186423f36 100644 --- a/tests/migrations/test_migrations_atomic_operation/0001_initial.py +++ b/tests/migrations/test_migrations_atomic_operation/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py b/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py index cb6f0891fda6..de3ea271734f 100644 --- a/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py +++ b/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_backwards_deps_1/0002_second.py b/tests/migrations/test_migrations_backwards_deps_1/0002_second.py index 41d6684f9d51..6eb831e061fe 100644 --- a/tests/migrations/test_migrations_backwards_deps_1/0002_second.py +++ b/tests/migrations/test_migrations_backwards_deps_1/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_conflict/0001_initial.py b/tests/migrations/test_migrations_conflict/0001_initial.py index 581d5368143f..344bebdfe326 100644 --- a/tests/migrations/test_migrations_conflict/0001_initial.py +++ b/tests/migrations/test_migrations_conflict/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_conflict/0002_conflicting_second.py b/tests/migrations/test_migrations_conflict/0002_conflicting_second.py index 405763617701..15ea1f063aa8 100644 --- a/tests/migrations/test_migrations_conflict/0002_conflicting_second.py +++ b/tests/migrations/test_migrations_conflict/0002_conflicting_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_conflict/0002_second.py b/tests/migrations/test_migrations_conflict/0002_second.py index e5fed5df1316..60a6999ee473 100644 --- a/tests/migrations/test_migrations_conflict/0002_second.py +++ b/tests/migrations/test_migrations_conflict/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_custom_user/0001_initial.py b/tests/migrations/test_migrations_custom_user/0001_initial.py index dd1b6bc219c7..250aa9f51b6e 100644 --- a/tests/migrations/test_migrations_custom_user/0001_initial.py +++ b/tests/migrations/test_migrations_custom_user/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.conf import settings from django.db import migrations, models diff --git a/tests/migrations/test_migrations_fake_split_initial/0001_initial.py b/tests/migrations/test_migrations_fake_split_initial/0001_initial.py index 1f42af2fb8aa..2079c10be868 100644 --- a/tests/migrations/test_migrations_fake_split_initial/0001_initial.py +++ b/tests/migrations/test_migrations_fake_split_initial/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_fake_split_initial/0002_second.py b/tests/migrations/test_migrations_fake_split_initial/0002_second.py index 6730f1c65af2..6e9b28efb4fb 100644 --- a/tests/migrations/test_migrations_fake_split_initial/0002_second.py +++ b/tests/migrations/test_migrations_fake_split_initial/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_first/second.py b/tests/migrations/test_migrations_first/second.py index d0929e6a6f61..e4cf995dcc13 100644 --- a/tests/migrations/test_migrations_first/second.py +++ b/tests/migrations/test_migrations_first/second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_first/thefirst.py b/tests/migrations/test_migrations_first/thefirst.py index 581d5368143f..344bebdfe326 100644 --- a/tests/migrations/test_migrations_first/thefirst.py +++ b/tests/migrations/test_migrations_first/thefirst.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_initial_false/0001_not_initial.py b/tests/migrations/test_migrations_initial_false/0001_not_initial.py index 934532177619..5347ad2934e3 100644 --- a/tests/migrations/test_migrations_initial_false/0001_not_initial.py +++ b/tests/migrations/test_migrations_initial_false/0001_not_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_no_ancestor/0001_initial.py b/tests/migrations/test_migrations_no_ancestor/0001_initial.py index 581d5368143f..344bebdfe326 100644 --- a/tests/migrations/test_migrations_no_ancestor/0001_initial.py +++ b/tests/migrations/test_migrations_no_ancestor/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_no_ancestor/0002_conflicting_second.py b/tests/migrations/test_migrations_no_ancestor/0002_conflicting_second.py index 3e8b270599ef..71625a71166d 100644 --- a/tests/migrations/test_migrations_no_ancestor/0002_conflicting_second.py +++ b/tests/migrations/test_migrations_no_ancestor/0002_conflicting_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_no_ancestor/0002_second.py b/tests/migrations/test_migrations_no_ancestor/0002_second.py index 898676c9d8d0..71c300ceada7 100644 --- a/tests/migrations/test_migrations_no_ancestor/0002_second.py +++ b/tests/migrations/test_migrations_no_ancestor/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_no_changes/0001_initial.py b/tests/migrations/test_migrations_no_changes/0001_initial.py index 581d5368143f..344bebdfe326 100644 --- a/tests/migrations/test_migrations_no_changes/0001_initial.py +++ b/tests/migrations/test_migrations_no_changes/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_no_changes/0002_second.py b/tests/migrations/test_migrations_no_changes/0002_second.py index 898676c9d8d0..71c300ceada7 100644 --- a/tests/migrations/test_migrations_no_changes/0002_second.py +++ b/tests/migrations/test_migrations_no_changes/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_no_changes/0003_third.py b/tests/migrations/test_migrations_no_changes/0003_third.py index 05b7535dc399..89b3bc030c99 100644 --- a/tests/migrations/test_migrations_no_changes/0003_third.py +++ b/tests/migrations/test_migrations_no_changes/0003_third.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_no_default/0001_initial.py b/tests/migrations/test_migrations_no_default/0001_initial.py index 2fd027f2d2ae..e9176c4958be 100644 --- a/tests/migrations/test_migrations_no_default/0001_initial.py +++ b/tests/migrations/test_migrations_no_default/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_non_atomic/0001_initial.py b/tests/migrations/test_migrations_non_atomic/0001_initial.py index 47a03a16f980..f1aa1ae37125 100644 --- a/tests/migrations/test_migrations_non_atomic/0001_initial.py +++ b/tests/migrations/test_migrations_non_atomic/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_order/0001.py b/tests/migrations/test_migrations_order/0001.py index 402c13e7f699..2ef88e957d40 100644 --- a/tests/migrations/test_migrations_order/0001.py +++ b/tests/migrations/test_migrations_order/0001.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_run_before/0001_initial.py b/tests/migrations/test_migrations_run_before/0001_initial.py index 7d44a8d7898c..186c7fbec9a2 100644 --- a/tests/migrations/test_migrations_run_before/0001_initial.py +++ b/tests/migrations/test_migrations_run_before/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_run_before/0002_second.py b/tests/migrations/test_migrations_run_before/0002_second.py index 6f1fbdd6a145..2be86bb439d2 100644 --- a/tests/migrations/test_migrations_run_before/0002_second.py +++ b/tests/migrations/test_migrations_run_before/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_run_before/0003_third.py b/tests/migrations/test_migrations_run_before/0003_third.py index d5c098c730ea..d24d28ca1cb4 100644 --- a/tests/migrations/test_migrations_run_before/0003_third.py +++ b/tests/migrations/test_migrations_run_before/0003_third.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_squashed/0001_initial.py b/tests/migrations/test_migrations_squashed/0001_initial.py index 581d5368143f..344bebdfe326 100644 --- a/tests/migrations/test_migrations_squashed/0001_initial.py +++ b/tests/migrations/test_migrations_squashed/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_squashed/0001_squashed_0002.py b/tests/migrations/test_migrations_squashed/0001_squashed_0002.py index 3b87c54da442..1ba7f45e41c5 100644 --- a/tests/migrations/test_migrations_squashed/0001_squashed_0002.py +++ b/tests/migrations/test_migrations_squashed/0001_squashed_0002.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_squashed/0002_second.py b/tests/migrations/test_migrations_squashed/0002_second.py index e5fed5df1316..60a6999ee473 100644 --- a/tests/migrations/test_migrations_squashed/0002_second.py +++ b/tests/migrations/test_migrations_squashed/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_migrations_squashed_complex/1_auto.py b/tests/migrations/test_migrations_squashed_complex/1_auto.py index bf1268806320..46fc1242c9da 100644 --- a/tests/migrations/test_migrations_squashed_complex/1_auto.py +++ b/tests/migrations/test_migrations_squashed_complex/1_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex/2_auto.py b/tests/migrations/test_migrations_squashed_complex/2_auto.py index 1d952ad0df53..1964bf81673c 100644 --- a/tests/migrations/test_migrations_squashed_complex/2_auto.py +++ b/tests/migrations/test_migrations_squashed_complex/2_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex/3_auto.py b/tests/migrations/test_migrations_squashed_complex/3_auto.py index d7809681154b..994ddf361952 100644 --- a/tests/migrations/test_migrations_squashed_complex/3_auto.py +++ b/tests/migrations/test_migrations_squashed_complex/3_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex/3_squashed_5.py b/tests/migrations/test_migrations_squashed_complex/3_squashed_5.py index f7dde035248e..e8f1eb527ee2 100644 --- a/tests/migrations/test_migrations_squashed_complex/3_squashed_5.py +++ b/tests/migrations/test_migrations_squashed_complex/3_squashed_5.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex/4_auto.py b/tests/migrations/test_migrations_squashed_complex/4_auto.py index c39b16e4544a..e7d0f09b55fb 100644 --- a/tests/migrations/test_migrations_squashed_complex/4_auto.py +++ b/tests/migrations/test_migrations_squashed_complex/4_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex/5_auto.py b/tests/migrations/test_migrations_squashed_complex/5_auto.py index 754fe2d25377..e7e25d9a7179 100644 --- a/tests/migrations/test_migrations_squashed_complex/5_auto.py +++ b/tests/migrations/test_migrations_squashed_complex/5_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex/6_auto.py b/tests/migrations/test_migrations_squashed_complex/6_auto.py index 65d829cd32bd..4438bb41968b 100644 --- a/tests/migrations/test_migrations_squashed_complex/6_auto.py +++ b/tests/migrations/test_migrations_squashed_complex/6_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex/7_auto.py b/tests/migrations/test_migrations_squashed_complex/7_auto.py index f1b3cd3e4976..f231edfed116 100644 --- a/tests/migrations/test_migrations_squashed_complex/7_auto.py +++ b/tests/migrations/test_migrations_squashed_complex/7_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py index bf1268806320..46fc1242c9da 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/1_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py index 13a844275b71..83d6e0bedc09 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py index 521e70f5d262..838f68f99f39 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/2_squashed_3.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py index aa0e86e5608a..8abccb5bed8d 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py index 145e495a1890..3b44a1d0ab21 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/4_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py index 13a844275b71..83d6e0bedc09 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py index 6ef4dba71ed5..e12b5754ad57 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/1_squashed_2.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py index 35fc7b8c1c36..6726beb9d574 100644 --- a/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py +++ b/tests/migrations/test_migrations_squashed_complex_multi_apps/app2/2_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_erroneous/1_auto.py b/tests/migrations/test_migrations_squashed_erroneous/1_auto.py index bf1268806320..46fc1242c9da 100644 --- a/tests/migrations/test_migrations_squashed_erroneous/1_auto.py +++ b/tests/migrations/test_migrations_squashed_erroneous/1_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_erroneous/2_auto.py b/tests/migrations/test_migrations_squashed_erroneous/2_auto.py index 1d952ad0df53..1964bf81673c 100644 --- a/tests/migrations/test_migrations_squashed_erroneous/2_auto.py +++ b/tests/migrations/test_migrations_squashed_erroneous/2_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_erroneous/3_squashed_5.py b/tests/migrations/test_migrations_squashed_erroneous/3_squashed_5.py index f7dde035248e..e8f1eb527ee2 100644 --- a/tests/migrations/test_migrations_squashed_erroneous/3_squashed_5.py +++ b/tests/migrations/test_migrations_squashed_erroneous/3_squashed_5.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_erroneous/6_auto.py b/tests/migrations/test_migrations_squashed_erroneous/6_auto.py index 65d829cd32bd..4438bb41968b 100644 --- a/tests/migrations/test_migrations_squashed_erroneous/6_auto.py +++ b/tests/migrations/test_migrations_squashed_erroneous/6_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_erroneous/7_auto.py b/tests/migrations/test_migrations_squashed_erroneous/7_auto.py index f1b3cd3e4976..f231edfed116 100644 --- a/tests/migrations/test_migrations_squashed_erroneous/7_auto.py +++ b/tests/migrations/test_migrations_squashed_erroneous/7_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_extra/0001_initial.py b/tests/migrations/test_migrations_squashed_extra/0001_initial.py index 9a330e106754..bd613aa95e0e 100644 --- a/tests/migrations/test_migrations_squashed_extra/0001_initial.py +++ b/tests/migrations/test_migrations_squashed_extra/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_extra/0001_squashed_0002.py b/tests/migrations/test_migrations_squashed_extra/0001_squashed_0002.py index 79beebea1c63..9d5581cc59e8 100644 --- a/tests/migrations/test_migrations_squashed_extra/0001_squashed_0002.py +++ b/tests/migrations/test_migrations_squashed_extra/0001_squashed_0002.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_extra/0002_second.py b/tests/migrations/test_migrations_squashed_extra/0002_second.py index 4b892a7e8b94..5ca710feb6ee 100644 --- a/tests/migrations/test_migrations_squashed_extra/0002_second.py +++ b/tests/migrations/test_migrations_squashed_extra/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_extra/0003_third.py b/tests/migrations/test_migrations_squashed_extra/0003_third.py index b69ae8883bb6..cf27aa2990cb 100644 --- a/tests/migrations/test_migrations_squashed_extra/0003_third.py +++ b/tests/migrations/test_migrations_squashed_extra/0003_third.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app1/1_auto.py b/tests/migrations/test_migrations_squashed_ref_squashed/app1/1_auto.py index 9a330e106754..bd613aa95e0e 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app1/1_auto.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app1/1_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_auto.py b/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_auto.py index 4428c73fc44c..27d00f0cba6b 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_auto.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_squashed_3.py b/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_squashed_3.py index 80501ef177a0..c0361741321b 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_squashed_3.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_squashed_3.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app1/3_auto.py b/tests/migrations/test_migrations_squashed_ref_squashed/app1/3_auto.py index 43863022a757..2203e4fdeee1 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app1/3_auto.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app1/3_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app1/4_auto.py b/tests/migrations/test_migrations_squashed_ref_squashed/app1/4_auto.py index 6ce3ee7953f2..e9eddb16649d 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app1/4_auto.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app1/4_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_auto.py b/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_auto.py index 4428c73fc44c..27d00f0cba6b 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_auto.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_squashed_2.py b/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_squashed_2.py index aca9a46f61df..ac24a30c8579 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_squashed_2.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_squashed_2.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_squashed_ref_squashed/app2/2_auto.py b/tests/migrations/test_migrations_squashed_ref_squashed/app2/2_auto.py index 77ab95584a9e..0b01988bbdac 100644 --- a/tests/migrations/test_migrations_squashed_ref_squashed/app2/2_auto.py +++ b/tests/migrations/test_migrations_squashed_ref_squashed/app2/2_auto.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations diff --git a/tests/migrations/test_migrations_unmigdep/0001_initial.py b/tests/migrations/test_migrations_unmigdep/0001_initial.py index a47805bf682f..91b58c3dad24 100644 --- a/tests/migrations/test_migrations_unmigdep/0001_initial.py +++ b/tests/migrations/test_migrations_unmigdep/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index e1daabe8b522..f962f9cf8c0e 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from django.db import connection, migrations, models, transaction diff --git a/tests/migrations/test_optimizer.py b/tests/migrations/test_optimizer.py index fc4f0ac5d7a8..be2db97ba44c 100644 --- a/tests/migrations/test_optimizer.py +++ b/tests/migrations/test_optimizer.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from django.db import migrations, models from django.db.migrations import operations from django.db.migrations.optimizer import MigrationOptimizer diff --git a/tests/migrations/test_questioner.py b/tests/migrations/test_questioner.py index d5ba18a68402..45536410bbaa 100644 --- a/tests/migrations/test_questioner.py +++ b/tests/migrations/test_questioner.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.migrations.questioner import MigrationQuestioner from django.test import SimpleTestCase from django.test.utils import override_settings diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py index f06a215747f4..c03d8cfd38cd 100644 --- a/tests/migrations/test_writer.py +++ b/tests/migrations/test_writer.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import decimal import functools @@ -662,7 +659,6 @@ def test_migration_file_header_comments(self): self.assertTrue( output.startswith( - "# -*- coding: utf-8 -*-\n" "# Generated by Django %(version)s on 2015-07-31 04:40\n" % { 'version': get_version(), } diff --git a/tests/migrations2/test_migrations_2/0001_initial.py b/tests/migrations2/test_migrations_2/0001_initial.py index 02cbd97fcc77..6172f011e86a 100644 --- a/tests/migrations2/test_migrations_2/0001_initial.py +++ b/tests/migrations2/test_migrations_2/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations2/test_migrations_2_first/0001_initial.py b/tests/migrations2/test_migrations_2_first/0001_initial.py index e31d1d501fec..a290372312a4 100644 --- a/tests/migrations2/test_migrations_2_first/0001_initial.py +++ b/tests/migrations2/test_migrations_2_first/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations2/test_migrations_2_first/0002_second.py b/tests/migrations2/test_migrations_2_first/0002_second.py index a3ca7dac3934..67a422995d29 100644 --- a/tests/migrations2/test_migrations_2_first/0002_second.py +++ b/tests/migrations2/test_migrations_2_first/0002_second.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/migrations2/test_migrations_2_no_deps/0001_initial.py b/tests/migrations2/test_migrations_2_no_deps/0001_initial.py index 22137065942f..1314e3e1e11f 100644 --- a/tests/migrations2/test_migrations_2_no_deps/0001_initial.py +++ b/tests/migrations2/test_migrations_2_no_deps/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/model_fields/test_charfield.py b/tests/model_fields/test_charfield.py index 0bca108d2298..04ac1d3f92af 100644 --- a/tests/model_fields/test_charfield.py +++ b/tests/model_fields/test_charfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from unittest import skipIf from django.core.exceptions import ValidationError diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py index e178760d2fc9..92985a99d967 100644 --- a/tests/model_fields/test_imagefield.py +++ b/tests/model_fields/test_imagefield.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import shutil from unittest import skipIf diff --git a/tests/model_fields/test_promises.py b/tests/model_fields/test_promises.py index 65d1b7ec991b..bf5258cddf38 100644 --- a/tests/model_fields/test_promises.py +++ b/tests/model_fields/test_promises.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import unittest from decimal import Decimal diff --git a/tests/model_fields/test_slugfield.py b/tests/model_fields/test_slugfield.py index 45a4527ad979..3dc955d3adc4 100644 --- a/tests/model_fields/test_slugfield.py +++ b/tests/model_fields/test_slugfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import TestCase from .models import BigS, UnicodeSlugField diff --git a/tests/model_fields/test_textfield.py b/tests/model_fields/test_textfield.py index a3cd516cb4d1..a759b646482a 100644 --- a/tests/model_fields/test_textfield.py +++ b/tests/model_fields/test_textfield.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from unittest import skipIf from django.db import connection, models diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py index 3675e080faea..da91fc88b7b6 100644 --- a/tests/model_forms/models.py +++ b/tests/model_forms/models.py @@ -6,8 +6,6 @@ and the examples are probably a poor fit for the ``ModelForm`` syntax. In other words, most of these tests should be rewritten. """ -from __future__ import unicode_literals - import datetime import os import tempfile diff --git a/tests/model_forms/test_uuid.py b/tests/model_forms/test_uuid.py index b30da6d4653f..1c566efcd867 100644 --- a/tests/model_forms/test_uuid.py +++ b/tests/model_forms/test_uuid.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.core.exceptions import ValidationError from django.test import TestCase diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index ef808f72f56a..0fc516b55c88 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import os from decimal import Decimal diff --git a/tests/model_formsets/models.py b/tests/model_formsets/models.py index 0bf56189a7d3..421d873704f2 100644 --- a/tests/model_formsets/models.py +++ b/tests/model_formsets/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import uuid diff --git a/tests/model_formsets/tests.py b/tests/model_formsets/tests.py index 4387fbf52d22..b928944097af 100644 --- a/tests/model_formsets/tests.py +++ b/tests/model_formsets/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import re from datetime import date diff --git a/tests/model_formsets_regress/tests.py b/tests/model_formsets_regress/tests.py index 1885ca78521a..a9b50b3699a1 100644 --- a/tests/model_formsets_regress/tests.py +++ b/tests/model_formsets_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.forms.formsets import DELETION_FIELD_NAME, BaseFormSet from django.forms.models import ( diff --git a/tests/model_inheritance/models.py b/tests/model_inheritance/models.py index 45f22df0bcce..4c7d4a7c8a28 100644 --- a/tests/model_inheritance/models.py +++ b/tests/model_inheritance/models.py @@ -11,8 +11,6 @@ Both styles are demonstrated here. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/model_inheritance/test_abstract_inheritance.py b/tests/model_inheritance/test_abstract_inheritance.py index 71b8513a574a..6f0b89128bd6 100644 --- a/tests/model_inheritance/test_abstract_inheritance.py +++ b/tests/model_inheritance/test_abstract_inheritance.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) diff --git a/tests/model_inheritance/tests.py b/tests/model_inheritance/tests.py index 079fbb75c4ad..8bb74d7ccbb2 100644 --- a/tests/model_inheritance/tests.py +++ b/tests/model_inheritance/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from operator import attrgetter from django.core.exceptions import FieldError, ValidationError diff --git a/tests/model_inheritance_regress/models.py b/tests/model_inheritance_regress/models.py index 8481e215164a..69ce0d9e2b75 100644 --- a/tests/model_inheritance_regress/models.py +++ b/tests/model_inheritance_regress/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.db import models diff --git a/tests/model_inheritance_regress/tests.py b/tests/model_inheritance_regress/tests.py index 3664fca44f27..9cb710c4b8e2 100644 --- a/tests/model_inheritance_regress/tests.py +++ b/tests/model_inheritance_regress/tests.py @@ -1,8 +1,6 @@ """ Regression tests for Model inheritance behavior. """ -from __future__ import unicode_literals - import datetime from operator import attrgetter from unittest import expectedFailure diff --git a/tests/model_options/test_tablespaces.py b/tests/model_options/test_tablespaces.py index 2d4b9073e83b..03a137603b52 100644 --- a/tests/model_options/test_tablespaces.py +++ b/tests/model_options/test_tablespaces.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import apps from django.conf import settings from django.db import connection diff --git a/tests/model_package/tests.py b/tests/model_package/tests.py index 9d1b81fa2a66..bdb1cfba5a14 100644 --- a/tests/model_package/tests.py +++ b/tests/model_package/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import connection, models from django.db.backends.utils import truncate_name from django.test import TestCase diff --git a/tests/model_regress/models.py b/tests/model_regress/models.py index e7c2b3a49450..147116d7e292 100644 --- a/tests/model_regress/models.py +++ b/tests/model_regress/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/model_regress/tests.py b/tests/model_regress/tests.py index bd8e927be69d..808729979ffe 100644 --- a/tests/model_regress/tests.py +++ b/tests/model_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from operator import attrgetter diff --git a/tests/modeladmin/models.py b/tests/modeladmin/models.py index 88a659795a8b..64cc86aa6658 100644 --- a/tests/modeladmin/models.py +++ b/tests/modeladmin/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/modeladmin/test_checks.py b/tests/modeladmin/test_checks.py index 0c66544b6beb..93b35ecf5687 100644 --- a/tests/modeladmin/test_checks.py +++ b/tests/modeladmin/test_checks.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.contrib.admin import BooleanFieldListFilter, SimpleListFilter from django.contrib.admin.options import VERTICAL, ModelAdmin, TabularInline diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 1f5d8a32364f..12ca86ff1ac6 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import date from django import forms diff --git a/tests/multiple_database/routers.py b/tests/multiple_database/routers.py index e467cf563fc6..e51c82b858c0 100644 --- a/tests/multiple_database/routers.py +++ b/tests/multiple_database/routers.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import DEFAULT_DB_ALIAS diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py index 0ea3b6667e1f..7e936216b742 100644 --- a/tests/multiple_database/tests.py +++ b/tests/multiple_database/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import pickle from operator import attrgetter diff --git a/tests/nested_foreign_keys/tests.py b/tests/nested_foreign_keys/tests.py index 34a3703e6810..098023d23ab6 100644 --- a/tests/nested_foreign_keys/tests.py +++ b/tests/nested_foreign_keys/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import ( diff --git a/tests/null_fk/tests.py b/tests/null_fk/tests.py index 19b285e32ada..e587d6551b96 100644 --- a/tests/null_fk/tests.py +++ b/tests/null_fk/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models import Q from django.test import TestCase diff --git a/tests/null_fk_ordering/models.py b/tests/null_fk_ordering/models.py index 0bac5e1ab78e..e65c227f88c5 100644 --- a/tests/null_fk_ordering/models.py +++ b/tests/null_fk_ordering/models.py @@ -5,8 +5,6 @@ unexpected results """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/null_fk_ordering/tests.py b/tests/null_fk_ordering/tests.py index 7215118b9456..897c03063fbc 100644 --- a/tests/null_fk_ordering/tests.py +++ b/tests/null_fk_ordering/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import Article, Author, Comment, Forum, Post, SystemInfo diff --git a/tests/null_queries/models.py b/tests/null_queries/models.py index 8d915ba11f97..b40f4539b37a 100644 --- a/tests/null_queries/models.py +++ b/tests/null_queries/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/null_queries/tests.py b/tests/null_queries/tests.py index 8f58b9dee14c..547b586e006c 100644 --- a/tests/null_queries/tests.py +++ b/tests/null_queries/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import FieldError from django.test import TestCase diff --git a/tests/one_to_one/models.py b/tests/one_to_one/models.py index 0f4aa70f6c8f..c58114dce8d5 100644 --- a/tests/one_to_one/models.py +++ b/tests/one_to_one/models.py @@ -5,8 +5,6 @@ In this example, a ``Place`` optionally can be a ``Restaurant``. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/one_to_one/tests.py b/tests/one_to_one/tests.py index 3d98d78c27ca..2fb118538d07 100644 --- a/tests/one_to_one/tests.py +++ b/tests/one_to_one/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import IntegrityError, connection, transaction from django.test import TestCase diff --git a/tests/or_lookups/tests.py b/tests/or_lookups/tests.py index 5e8b3dd69481..dd93ed7efc71 100644 --- a/tests/or_lookups/tests.py +++ b/tests/or_lookups/tests.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - from datetime import datetime from operator import attrgetter diff --git a/tests/order_with_respect_to/base_tests.py b/tests/order_with_respect_to/base_tests.py index ed80ab13e52f..ad8925bf8892 100644 --- a/tests/order_with_respect_to/base_tests.py +++ b/tests/order_with_respect_to/base_tests.py @@ -2,8 +2,6 @@ The tests are shared with contenttypes_tests and so shouldn't import or reference any models directly. Subclasses should inherit django.test.TestCase. """ -from __future__ import unicode_literals - from operator import attrgetter diff --git a/tests/order_with_respect_to/tests.py b/tests/order_with_respect_to/tests.py index 7788fe3368c4..a047516caac1 100644 --- a/tests/order_with_respect_to/tests.py +++ b/tests/order_with_respect_to/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from operator import attrgetter from django.db import models diff --git a/tests/ordering/tests.py b/tests/ordering/tests.py index 399b8d70351a..de49626cf455 100644 --- a/tests/ordering/tests.py +++ b/tests/ordering/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime from operator import attrgetter diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index 888cb813b081..fe967631ab0b 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from datetime import datetime diff --git a/tests/postgres_tests/array_default_migrations/0001_initial.py b/tests/postgres_tests/array_default_migrations/0001_initial.py index ebda628a5b53..eb523218ef10 100644 --- a/tests/postgres_tests/array_default_migrations/0001_initial.py +++ b/tests/postgres_tests/array_default_migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.postgres.fields from django.db import migrations, models diff --git a/tests/postgres_tests/array_default_migrations/0002_integerarraymodel_field_2.py b/tests/postgres_tests/array_default_migrations/0002_integerarraymodel_field_2.py index 9526a96735d1..679c9bb0d339 100644 --- a/tests/postgres_tests/array_default_migrations/0002_integerarraymodel_field_2.py +++ b/tests/postgres_tests/array_default_migrations/0002_integerarraymodel_field_2.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.postgres.fields from django.db import migrations, models diff --git a/tests/postgres_tests/array_index_migrations/0001_initial.py b/tests/postgres_tests/array_index_migrations/0001_initial.py index 10c1780a46a0..505e53e4e884 100644 --- a/tests/postgres_tests/array_index_migrations/0001_initial.py +++ b/tests/postgres_tests/array_index_migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import django.contrib.postgres.fields from django.db import migrations, models diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py index 41628030b7fe..7add08c49915 100644 --- a/tests/postgres_tests/migrations/0001_setup_extensions.py +++ b/tests/postgres_tests/migrations/0001_setup_extensions.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations try: diff --git a/tests/postgres_tests/migrations/0002_create_test_models.py b/tests/postgres_tests/migrations/0002_create_test_models.py index 8f72183f5c69..489bedf29804 100644 --- a/tests/postgres_tests/migrations/0002_create_test_models.py +++ b/tests/postgres_tests/migrations/0002_create_test_models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core.serializers.json import DjangoJSONEncoder from django.db import migrations, models diff --git a/tests/postgres_tests/test_hstore.py b/tests/postgres_tests/test_hstore.py index 0fc427f67c06..2c6f93f1f641 100644 --- a/tests/postgres_tests/test_hstore.py +++ b/tests/postgres_tests/test_hstore.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import json from django.core import exceptions, serializers diff --git a/tests/postgres_tests/test_json.py b/tests/postgres_tests/test_json.py index 4e8851d4853b..2506fc36d625 100644 --- a/tests/postgres_tests/test_json.py +++ b/tests/postgres_tests/test_json.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import uuid from decimal import Decimal diff --git a/tests/postgres_tests/test_unaccent.py b/tests/postgres_tests/test_unaccent.py index e1e41710628b..018aedb64c89 100644 --- a/tests/postgres_tests/test_unaccent.py +++ b/tests/postgres_tests/test_unaccent.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import modify_settings from . import PostgreSQLTestCase diff --git a/tests/prefetch_related/test_uuid.py b/tests/prefetch_related/test_uuid.py index 08930fc5f458..11a2474f4ac3 100644 --- a/tests/prefetch_related/test_uuid.py +++ b/tests/prefetch_related/test_uuid.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import Flea, House, Person, Pet, Room diff --git a/tests/prefetch_related/tests.py b/tests/prefetch_related/tests.py index a6b5fd5cd302..126a8bc03598 100644 --- a/tests/prefetch_related/tests.py +++ b/tests/prefetch_related/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.db import connection diff --git a/tests/properties/tests.py b/tests/properties/tests.py index 175bf0eb8323..a50a82595383 100644 --- a/tests/properties/tests.py +++ b/tests/properties/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from .models import Person diff --git a/tests/proxy_model_inheritance/tests.py b/tests/proxy_model_inheritance/tests.py index b4b1c134351c..9bf8f1c04c5d 100644 --- a/tests/proxy_model_inheritance/tests.py +++ b/tests/proxy_model_inheritance/tests.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, unicode_literals - import os from django.core.management import call_command diff --git a/tests/proxy_models/tests.py b/tests/proxy_models/tests.py index 96d3c0914f7d..5fdfbfb6bf9f 100644 --- a/tests/proxy_models/tests.py +++ b/tests/proxy_models/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib import admin from django.contrib.auth.models import User as AuthUser from django.contrib.contenttypes.models import ContentType diff --git a/tests/queries/models.py b/tests/queries/models.py index 67a28e950ebc..8c1ba59b67cb 100644 --- a/tests/queries/models.py +++ b/tests/queries/models.py @@ -1,8 +1,6 @@ """ Various complex queries that have been problematic in the past. """ -from __future__ import unicode_literals - import threading from django.db import models diff --git a/tests/queries/test_qs_combinators.py b/tests/queries/test_qs_combinators.py index a0faab2eb79a..02a0df216d06 100644 --- a/tests/queries/test_qs_combinators.py +++ b/tests/queries/test_qs_combinators.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models import F, IntegerField, Value from django.db.utils import DatabaseError from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature diff --git a/tests/queries/tests.py b/tests/queries/tests.py index b0999be3f8e3..e2dd86bac185 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import pickle import unittest diff --git a/tests/queryset_pickle/tests.py b/tests/queryset_pickle/tests.py index d95878966a4b..9333e96fc300 100644 --- a/tests/queryset_pickle/tests.py +++ b/tests/queryset_pickle/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import pickle import unittest diff --git a/tests/raw_query/tests.py b/tests/raw_query/tests.py index 360dd31d5f9f..26b57dc13957 100644 --- a/tests/raw_query/tests.py +++ b/tests/raw_query/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import date from decimal import Decimal diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 27dc439e5f63..c5a148ffbb12 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import time from datetime import datetime, timedelta from io import BytesIO diff --git a/tests/reserved_names/tests.py b/tests/reserved_names/tests.py index 429bb01e2d2e..7e2510cd97f2 100644 --- a/tests/reserved_names/tests.py +++ b/tests/reserved_names/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.test import TestCase diff --git a/tests/resolve_url/tests.py b/tests/resolve_url/tests.py index d56e08c97c5a..73556a93beac 100644 --- a/tests/resolve_url/tests.py +++ b/tests/resolve_url/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.shortcuts import resolve_url from django.test import SimpleTestCase, override_settings from django.urls import NoReverseMatch, reverse_lazy diff --git a/tests/responses/tests.py b/tests/responses/tests.py index 5dba0e04cbbd..8adf092ca0ec 100644 --- a/tests/responses/tests.py +++ b/tests/responses/tests.py @@ -1,7 +1,3 @@ -# -*- coding: utf-8 -*- - -from __future__ import unicode_literals - import io from django.conf import settings diff --git a/tests/reverse_lookup/tests.py b/tests/reverse_lookup/tests.py index dda3c29691a8..0e0093f38ea6 100644 --- a/tests/reverse_lookup/tests.py +++ b/tests/reverse_lookup/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import FieldError from django.test import TestCase diff --git a/tests/save_delete_hooks/models.py b/tests/save_delete_hooks/models.py index e6a155a8e7b4..3d229daadad0 100644 --- a/tests/save_delete_hooks/models.py +++ b/tests/save_delete_hooks/models.py @@ -4,8 +4,6 @@ To execute arbitrary code around ``save()`` and ``delete()``, just subclass the methods. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/save_delete_hooks/tests.py b/tests/save_delete_hooks/tests.py index 0fd1ed4e0382..e0cb2f51ab43 100644 --- a/tests/save_delete_hooks/tests.py +++ b/tests/save_delete_hooks/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from django.utils import six diff --git a/tests/select_for_update/tests.py b/tests/select_for_update/tests.py index 9e5ee598b0b8..722412454671 100644 --- a/tests/select_for_update/tests.py +++ b/tests/select_for_update/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import threading import time diff --git a/tests/select_related/tests.py b/tests/select_related/tests.py index d6c0c850dff1..04f762f6572a 100644 --- a/tests/select_related/tests.py +++ b/tests/select_related/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import FieldError from django.test import SimpleTestCase, TestCase diff --git a/tests/select_related_onetoone/tests.py b/tests/select_related_onetoone/tests.py index a7d646e25d90..5868dc807c31 100644 --- a/tests/select_related_onetoone/tests.py +++ b/tests/select_related_onetoone/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import FieldError from django.test import SimpleTestCase, TestCase diff --git a/tests/select_related_regress/models.py b/tests/select_related_regress/models.py index 8e748d3eef92..4ac8cc15182a 100644 --- a/tests/select_related_regress/models.py +++ b/tests/select_related_regress/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/select_related_regress/tests.py b/tests/select_related_regress/tests.py index 6c59192d2a9c..bb5f7774a3e7 100644 --- a/tests/select_related_regress/tests.py +++ b/tests/select_related_regress/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import TestCase from django.utils import six diff --git a/tests/serializers/models/base.py b/tests/serializers/models/base.py index 4889377e0981..5f9bdd833cd9 100644 --- a/tests/serializers/models/base.py +++ b/tests/serializers/models/base.py @@ -4,8 +4,6 @@ ``django.core.serializers`` provides interfaces to converting Django ``QuerySet`` objects to and from "flat" data (i.e. strings). """ -from __future__ import unicode_literals - from decimal import Decimal from django.db import models diff --git a/tests/serializers/models/data.py b/tests/serializers/models/data.py index 9c44d97e6b71..f6a1d108f6ca 100644 --- a/tests/serializers/models/data.py +++ b/tests/serializers/models/data.py @@ -4,8 +4,6 @@ NULL values, where allowed. The basic idea is to have a model for each Django data type. """ -from __future__ import unicode_literals - from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) diff --git a/tests/serializers/test_data.py b/tests/serializers/test_data.py index f9cb9582fe30..2e9527f982b6 100644 --- a/tests/serializers/test_data.py +++ b/tests/serializers/test_data.py @@ -6,8 +6,6 @@ the serializers. This includes all valid data values, plus forward, backwards and self references. """ -from __future__ import unicode_literals - import datetime import decimal import uuid diff --git a/tests/serializers/test_json.py b/tests/serializers/test_json.py index b191ce664408..7713e0c3c408 100644 --- a/tests/serializers/test_json.py +++ b/tests/serializers/test_json.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime import decimal import json diff --git a/tests/serializers/test_natural.py b/tests/serializers/test_natural.py index 1a4f4d5ea05d..c4e2bedf1793 100644 --- a/tests/serializers/test_natural.py +++ b/tests/serializers/test_natural.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core import serializers from django.db import connection from django.test import TestCase diff --git a/tests/serializers/test_xml.py b/tests/serializers/test_xml.py index e516444c9571..71b38d48fa89 100644 --- a/tests/serializers/test_xml.py +++ b/tests/serializers/test_xml.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from xml.dom import minidom from django.core import serializers diff --git a/tests/serializers/test_yaml.py b/tests/serializers/test_yaml.py index 0b4b9b00d1b3..038227efeaea 100644 --- a/tests/serializers/test_yaml.py +++ b/tests/serializers/test_yaml.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import importlib import unittest diff --git a/tests/serializers/tests.py b/tests/serializers/tests.py index f765aea81568..656bc4b4db2c 100644 --- a/tests/serializers/tests.py +++ b/tests/serializers/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from datetime import datetime from django.core import serializers diff --git a/tests/servers/tests.py b/tests/servers/tests.py index 03e05d0957e8..ff1d4aff8c73 100644 --- a/tests/servers/tests.py +++ b/tests/servers/tests.py @@ -1,9 +1,6 @@ -# -*- encoding: utf-8 -*- """ Tests for django.core.servers. """ -from __future__ import unicode_literals - import contextlib import errno import os diff --git a/tests/signals/models.py b/tests/signals/models.py index 2f76343ecf13..4f8d72817c37 100644 --- a/tests/signals/models.py +++ b/tests/signals/models.py @@ -1,8 +1,6 @@ """ Testing signals before/after saving and deleting. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/signals/tests.py b/tests/signals/tests.py index 7fd04df36a88..9cb470b8cfe5 100644 --- a/tests/signals/tests.py +++ b/tests/signals/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps.registry import Apps from django.db import models from django.db.models import signals diff --git a/tests/signed_cookies_tests/tests.py b/tests/signed_cookies_tests/tests.py index 15b0a7c033c0..b7ea902bf49e 100644 --- a/tests/signed_cookies_tests/tests.py +++ b/tests/signed_cookies_tests/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core import signing from django.http import HttpRequest, HttpResponse from django.test import SimpleTestCase, override_settings diff --git a/tests/signing/tests.py b/tests/signing/tests.py index e2677dfc1e54..c6145d09cb37 100644 --- a/tests/signing/tests.py +++ b/tests/signing/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.core import signing diff --git a/tests/sitemaps_tests/test_generic.py b/tests/sitemaps_tests/test_generic.py index 96736c261ac6..db426e557feb 100644 --- a/tests/sitemaps_tests/test_generic.py +++ b/tests/sitemaps_tests/test_generic.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import override_settings from .base import SitemapTestsBase diff --git a/tests/sitemaps_tests/test_http.py b/tests/sitemaps_tests/test_http.py index 8367b495d87c..ec7d2be80f5d 100644 --- a/tests/sitemaps_tests/test_http.py +++ b/tests/sitemaps_tests/test_http.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from datetime import date from unittest import skipUnless diff --git a/tests/sitemaps_tests/test_https.py b/tests/sitemaps_tests/test_https.py index 3b68baac43ac..ac6477f7a879 100644 --- a/tests/sitemaps_tests/test_https.py +++ b/tests/sitemaps_tests/test_https.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import date from django.test import override_settings diff --git a/tests/sites_framework/migrations/0001_initial.py b/tests/sites_framework/migrations/0001_initial.py index 78d26cab317b..f4a2ba9460ca 100644 --- a/tests/sites_framework/migrations/0001_initial.py +++ b/tests/sites_framework/migrations/0001_initial.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models diff --git a/tests/sites_tests/tests.py b/tests/sites_tests/tests.py index 3ea66be9bb5f..0179500f14d5 100644 --- a/tests/sites_tests/tests.py +++ b/tests/sites_tests/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import apps from django.apps.registry import Apps from django.conf import settings diff --git a/tests/staticfiles_tests/cases.py b/tests/staticfiles_tests/cases.py index 009672ee1233..f278e6a97449 100644 --- a/tests/staticfiles_tests/cases.py +++ b/tests/staticfiles_tests/cases.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import codecs import os import shutil diff --git a/tests/staticfiles_tests/settings.py b/tests/staticfiles_tests/settings.py index caf42b2505e5..c9bf851db7d2 100644 --- a/tests/staticfiles_tests/settings.py +++ b/tests/staticfiles_tests/settings.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os.path from django.utils._os import upath diff --git a/tests/staticfiles_tests/test_finders.py b/tests/staticfiles_tests/test_finders.py index 7355113ad617..0f5cf5bea213 100644 --- a/tests/staticfiles_tests/test_finders.py +++ b/tests/staticfiles_tests/test_finders.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from django.conf import settings diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py index bbb8567c2a1e..ad608ea24b94 100644 --- a/tests/staticfiles_tests/test_management.py +++ b/tests/staticfiles_tests/test_management.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import codecs import datetime import os diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index 4e1dec84f950..d1b7a49626ff 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import shutil import sys diff --git a/tests/staticfiles_tests/test_templatetags.py b/tests/staticfiles_tests/test_templatetags.py index 541b233855ad..cd3f7d4bfa5e 100644 --- a/tests/staticfiles_tests/test_templatetags.py +++ b/tests/staticfiles_tests/test_templatetags.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import override_settings from .cases import StaticFilesTestCase diff --git a/tests/staticfiles_tests/test_views.py b/tests/staticfiles_tests/test_views.py index 6d9096784f4c..fa817a6ef155 100644 --- a/tests/staticfiles_tests/test_views.py +++ b/tests/staticfiles_tests/test_views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import posixpath from django.conf import settings diff --git a/tests/str/models.py b/tests/str/models.py index e606e912aab6..33e31857fae1 100644 --- a/tests/str/models.py +++ b/tests/str/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Adding __str__() or __unicode__() to models diff --git a/tests/str/tests.py b/tests/str/tests.py index 08fd554e5ecb..516560415cc3 100644 --- a/tests/str/tests.py +++ b/tests/str/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from unittest import skipIf diff --git a/tests/string_lookup/models.py b/tests/string_lookup/models.py index 775ec2faf001..e8fd8a1b1217 100644 --- a/tests/string_lookup/models.py +++ b/tests/string_lookup/models.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/string_lookup/tests.py b/tests/string_lookup/tests.py index 805833a8e483..22b0c6b9cfa9 100644 --- a/tests/string_lookup/tests.py +++ b/tests/string_lookup/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import TestCase from .models import Article, Bar, Base, Child, Foo, Whiz diff --git a/tests/swappable_models/tests.py b/tests/swappable_models/tests.py index 548c7b328610..b67aece8c087 100644 --- a/tests/swappable_models/tests.py +++ b/tests/swappable_models/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from swappable_models.models import Article from django.contrib.auth.models import Permission diff --git a/tests/syndication_tests/feeds.py b/tests/syndication_tests/feeds.py index f4162b345e63..87c8d962b74b 100644 --- a/tests/syndication_tests/feeds.py +++ b/tests/syndication_tests/feeds.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.contrib.syndication import views from django.utils import feedgenerator from django.utils.timezone import get_fixed_timezone diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py index 0fb860474cf5..c9baa6537bd3 100644 --- a/tests/syndication_tests/tests.py +++ b/tests/syndication_tests/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from xml.dom import minidom diff --git a/tests/template_backends/test_dummy.py b/tests/template_backends/test_dummy.py index 83b42c7eb4bf..dededfe390a1 100644 --- a/tests/template_backends/test_dummy.py +++ b/tests/template_backends/test_dummy.py @@ -1,7 +1,3 @@ -# coding: utf-8 - -from __future__ import unicode_literals - import re from django.forms import CharField, Form, Media diff --git a/tests/template_backends/test_jinja2.py b/tests/template_backends/test_jinja2.py index a79c6bc4603f..117719fa0d20 100644 --- a/tests/template_backends/test_jinja2.py +++ b/tests/template_backends/test_jinja2.py @@ -1,7 +1,3 @@ -# Since this package contains a "jinja2" directory, this is required to -# silence an ImportWarning warning on Python 2. -from __future__ import absolute_import - from unittest import skipIf from django.template import TemplateSyntaxError diff --git a/tests/template_tests/filter_tests/test_escapejs.py b/tests/template_tests/filter_tests/test_escapejs.py index ccb9cd3c0fa0..3b038726b296 100644 --- a/tests/template_tests/filter_tests/test_escapejs.py +++ b/tests/template_tests/filter_tests/test_escapejs.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.template.defaultfilters import escapejs_filter from django.test import SimpleTestCase from django.utils import six diff --git a/tests/template_tests/filter_tests/test_filesizeformat.py b/tests/template_tests/filter_tests/test_filesizeformat.py index 9d143ca10015..2e425af8ac69 100644 --- a/tests/template_tests/filter_tests/test_filesizeformat.py +++ b/tests/template_tests/filter_tests/test_filesizeformat.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.template.defaultfilters import filesizeformat from django.test import SimpleTestCase from django.utils import translation diff --git a/tests/template_tests/filter_tests/test_floatformat.py b/tests/template_tests/filter_tests/test_floatformat.py index b1ffbe56c1b5..d4a4526d1dde 100644 --- a/tests/template_tests/filter_tests/test_floatformat.py +++ b/tests/template_tests/filter_tests/test_floatformat.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from decimal import Decimal, localcontext from django.template.defaultfilters import floatformat diff --git a/tests/template_tests/filter_tests/test_force_escape.py b/tests/template_tests/filter_tests/test_force_escape.py index 45f4efde6259..776dc8042d74 100644 --- a/tests/template_tests/filter_tests/test_force_escape.py +++ b/tests/template_tests/filter_tests/test_force_escape.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import force_escape from django.test import SimpleTestCase from django.utils.safestring import SafeData diff --git a/tests/template_tests/filter_tests/test_iriencode.py b/tests/template_tests/filter_tests/test_iriencode.py index 837d6aa0f722..7d83b67f9df0 100644 --- a/tests/template_tests/filter_tests/test_iriencode.py +++ b/tests/template_tests/filter_tests/test_iriencode.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import iriencode, urlencode from django.test import SimpleTestCase from django.utils.safestring import mark_safe diff --git a/tests/template_tests/filter_tests/test_lower.py b/tests/template_tests/filter_tests/test_lower.py index 974664387513..1db934c5fac0 100644 --- a/tests/template_tests/filter_tests/test_lower.py +++ b/tests/template_tests/filter_tests/test_lower.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import lower from django.test import SimpleTestCase from django.utils.safestring import mark_safe diff --git a/tests/template_tests/filter_tests/test_slugify.py b/tests/template_tests/filter_tests/test_slugify.py index 5852417b2ec4..ec9f2bb73670 100644 --- a/tests/template_tests/filter_tests/test_slugify.py +++ b/tests/template_tests/filter_tests/test_slugify.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import slugify from django.test import SimpleTestCase from django.utils import six diff --git a/tests/template_tests/filter_tests/test_timesince.py b/tests/template_tests/filter_tests/test_timesince.py index 0cb975a90ed0..1936a1d44f40 100644 --- a/tests/template_tests/filter_tests/test_timesince.py +++ b/tests/template_tests/filter_tests/test_timesince.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime, timedelta from django.template.defaultfilters import timesince_filter diff --git a/tests/template_tests/filter_tests/test_timeuntil.py b/tests/template_tests/filter_tests/test_timeuntil.py index 1b06a21c937a..011b0a2e920e 100644 --- a/tests/template_tests/filter_tests/test_timeuntil.py +++ b/tests/template_tests/filter_tests/test_timeuntil.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime, timedelta from django.template.defaultfilters import timeuntil_filter diff --git a/tests/template_tests/filter_tests/test_title.py b/tests/template_tests/filter_tests/test_title.py index cf4d1033c636..08a5fb0de405 100644 --- a/tests/template_tests/filter_tests/test_title.py +++ b/tests/template_tests/filter_tests/test_title.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import title from django.test import SimpleTestCase diff --git a/tests/template_tests/filter_tests/test_truncatechars_html.py b/tests/template_tests/filter_tests/test_truncatechars_html.py index cf2623d74050..e225a319f5d3 100644 --- a/tests/template_tests/filter_tests/test_truncatechars_html.py +++ b/tests/template_tests/filter_tests/test_truncatechars_html.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import truncatechars_html from django.test import SimpleTestCase diff --git a/tests/template_tests/filter_tests/test_truncatewords_html.py b/tests/template_tests/filter_tests/test_truncatewords_html.py index aec2abf2d4d0..32ef41302842 100644 --- a/tests/template_tests/filter_tests/test_truncatewords_html.py +++ b/tests/template_tests/filter_tests/test_truncatewords_html.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import truncatewords_html from django.test import SimpleTestCase diff --git a/tests/template_tests/filter_tests/test_upper.py b/tests/template_tests/filter_tests/test_upper.py index f9c52bc0f8d1..a9efaf5322e1 100644 --- a/tests/template_tests/filter_tests/test_upper.py +++ b/tests/template_tests/filter_tests/test_upper.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import upper from django.test import SimpleTestCase from django.utils.safestring import mark_safe diff --git a/tests/template_tests/filter_tests/test_urlencode.py b/tests/template_tests/filter_tests/test_urlencode.py index 82199f8f1cdf..d095bb8fae67 100644 --- a/tests/template_tests/filter_tests/test_urlencode.py +++ b/tests/template_tests/filter_tests/test_urlencode.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import urlencode from django.test import SimpleTestCase diff --git a/tests/template_tests/filter_tests/test_urlize.py b/tests/template_tests/filter_tests/test_urlize.py index 6822092943c7..3096213a2277 100644 --- a/tests/template_tests/filter_tests/test_urlize.py +++ b/tests/template_tests/filter_tests/test_urlize.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.template.defaultfilters import urlize from django.test import SimpleTestCase from django.utils import six diff --git a/tests/template_tests/syntax_tests/i18n/base.py b/tests/template_tests/syntax_tests/i18n/base.py index b8c083d53684..690e5d3933ea 100644 --- a/tests/template_tests/syntax_tests/i18n/base.py +++ b/tests/template_tests/syntax_tests/i18n/base.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from django.conf import settings diff --git a/tests/template_tests/syntax_tests/i18n/test_blocktrans.py b/tests/template_tests/syntax_tests/i18n/test_blocktrans.py index 552c08b0381c..9af60e5131e4 100644 --- a/tests/template_tests/syntax_tests/i18n/test_blocktrans.py +++ b/tests/template_tests/syntax_tests/i18n/test_blocktrans.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from threading import local diff --git a/tests/template_tests/syntax_tests/i18n/test_filters.py b/tests/template_tests/syntax_tests/i18n/test_filters.py index 6a5a3fd1d529..cf8e4573c302 100644 --- a/tests/template_tests/syntax_tests/i18n/test_filters.py +++ b/tests/template_tests/syntax_tests/i18n/test_filters.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import SimpleTestCase from django.utils import translation diff --git a/tests/template_tests/syntax_tests/i18n/test_get_available_languages.py b/tests/template_tests/syntax_tests/i18n/test_get_available_languages.py index 187aa4e7abaa..0be5a79528cd 100644 --- a/tests/template_tests/syntax_tests/i18n/test_get_available_languages.py +++ b/tests/template_tests/syntax_tests/i18n/test_get_available_languages.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import SimpleTestCase from ...utils import setup diff --git a/tests/template_tests/syntax_tests/i18n/test_get_language_info.py b/tests/template_tests/syntax_tests/i18n/test_get_language_info.py index f555f67b7a86..bc89c65fddbc 100644 --- a/tests/template_tests/syntax_tests/i18n/test_get_language_info.py +++ b/tests/template_tests/syntax_tests/i18n/test_get_language_info.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import SimpleTestCase from django.utils import translation diff --git a/tests/template_tests/syntax_tests/i18n/test_get_language_info_list.py b/tests/template_tests/syntax_tests/i18n/test_get_language_info_list.py index 4b782c94d691..4572f41f1482 100644 --- a/tests/template_tests/syntax_tests/i18n/test_get_language_info_list.py +++ b/tests/template_tests/syntax_tests/i18n/test_get_language_info_list.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import SimpleTestCase from django.utils import translation diff --git a/tests/template_tests/syntax_tests/i18n/test_trans.py b/tests/template_tests/syntax_tests/i18n/test_trans.py index dd3860817556..fec9f1728d70 100644 --- a/tests/template_tests/syntax_tests/i18n/test_trans.py +++ b/tests/template_tests/syntax_tests/i18n/test_trans.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from threading import local from django.template import Context, Template, TemplateSyntaxError diff --git a/tests/template_tests/syntax_tests/i18n/test_underscore_syntax.py b/tests/template_tests/syntax_tests/i18n/test_underscore_syntax.py index aed204d63b17..38d929e21421 100644 --- a/tests/template_tests/syntax_tests/i18n/test_underscore_syntax.py +++ b/tests/template_tests/syntax_tests/i18n/test_underscore_syntax.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.template import Context, Template from django.test import SimpleTestCase from django.utils import translation diff --git a/tests/template_tests/syntax_tests/test_filter_syntax.py b/tests/template_tests/syntax_tests/test_filter_syntax.py index 3e524a61eb9b..c8d764659afa 100644 --- a/tests/template_tests/syntax_tests/test_filter_syntax.py +++ b/tests/template_tests/syntax_tests/test_filter_syntax.py @@ -1,6 +1,3 @@ -# coding: utf-8 -from __future__ import unicode_literals - from django.template import TemplateSyntaxError from django.test import SimpleTestCase diff --git a/tests/template_tests/syntax_tests/test_url.py b/tests/template_tests/syntax_tests/test_url.py index e6e20d08f361..2103ba61598d 100644 --- a/tests/template_tests/syntax_tests/test_url.py +++ b/tests/template_tests/syntax_tests/test_url.py @@ -1,4 +1,3 @@ -# coding: utf-8 from django.template import RequestContext, TemplateSyntaxError from django.test import RequestFactory, SimpleTestCase, override_settings from django.urls import NoReverseMatch, resolve diff --git a/tests/template_tests/test_callables.py b/tests/template_tests/test_callables.py index b7ce2944033b..4cfb49db5c6a 100644 --- a/tests/template_tests/test_callables.py +++ b/tests/template_tests/test_callables.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from unittest import TestCase from django.template import Context, Engine diff --git a/tests/template_tests/test_context.py b/tests/template_tests/test_context.py index 41e469eaabda..5cd2ec2e820a 100644 --- a/tests/template_tests/test_context.py +++ b/tests/template_tests/test_context.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.http import HttpRequest from django.template import ( Context, Engine, RequestContext, Template, Variable, VariableDoesNotExist, diff --git a/tests/template_tests/test_custom.py b/tests/template_tests/test_custom.py index b63882a9a865..df8ea17fb0ec 100644 --- a/tests/template_tests/test_custom.py +++ b/tests/template_tests/test_custom.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from unittest import skipUnless diff --git a/tests/template_tests/test_loaders.py b/tests/template_tests/test_loaders.py index 5f5092352435..6e9b6eb453b1 100644 --- a/tests/template_tests/test_loaders.py +++ b/tests/template_tests/test_loaders.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os.path import sys import tempfile diff --git a/tests/template_tests/test_logging.py b/tests/template_tests/test_logging.py index a11af3c02d1f..9dd804640887 100644 --- a/tests/template_tests/test_logging.py +++ b/tests/template_tests/test_logging.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import logging from django.template import Context, Engine, Variable, VariableDoesNotExist diff --git a/tests/template_tests/test_parser.py b/tests/template_tests/test_parser.py index c6800f68dc3d..3b59424f4783 100644 --- a/tests/template_tests/test_parser.py +++ b/tests/template_tests/test_parser.py @@ -1,8 +1,6 @@ """ Testing some internals of the template processing. These are *not* examples to be copied in user code. """ -from __future__ import unicode_literals - from django.template import Library, TemplateSyntaxError from django.template.base import ( TOKEN_BLOCK, FilterExpression, Parser, Token, Variable, diff --git a/tests/template_tests/test_response.py b/tests/template_tests/test_response.py index fa851a93f297..62cd14799dc6 100644 --- a/tests/template_tests/test_response.py +++ b/tests/template_tests/test_response.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import pickle import time from datetime import datetime diff --git a/tests/template_tests/test_unicode.py b/tests/template_tests/test_unicode.py index 169f15a6ed97..f6471e72e0de 100644 --- a/tests/template_tests/test_unicode.py +++ b/tests/template_tests/test_unicode.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from unittest import TestCase from django.template import Context, Engine diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 50ddee66743e..3ab215c094c2 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys from django.contrib.auth.models import Group diff --git a/tests/template_tests/urls.py b/tests/template_tests/urls.py index b0304e1c5451..a367696d43be 100644 --- a/tests/template_tests/urls.py +++ b/tests/template_tests/urls.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.conf.urls import include, url from . import views diff --git a/tests/template_tests/utils.py b/tests/template_tests/utils.py index 1747f080bc8f..cbc452c808e5 100644 --- a/tests/template_tests/utils.py +++ b/tests/template_tests/utils.py @@ -1,7 +1,3 @@ -# coding: utf-8 - -from __future__ import unicode_literals - import functools import os diff --git a/tests/test_client/test_conditional_content_removal.py b/tests/test_client/test_conditional_content_removal.py index 644eb23a066e..72bf7f238bb9 100644 --- a/tests/test_client/test_conditional_content_removal.py +++ b/tests/test_client/test_conditional_content_removal.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import gzip import io diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py index 8b834e02e057..5981ca319e0b 100644 --- a/tests/test_client/tests.py +++ b/tests/test_client/tests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Testing using the Test Client @@ -20,8 +19,6 @@ rather than the HTML rendered to the end-user. """ -from __future__ import unicode_literals - import tempfile from django.contrib.auth.models import User diff --git a/tests/test_client_regress/tests.py b/tests/test_client_regress/tests.py index 5598ed5280ec..0436ae99680d 100644 --- a/tests/test_client_regress/tests.py +++ b/tests/test_client_regress/tests.py @@ -1,9 +1,6 @@ -# -*- coding: utf-8 -*- """ Regression tests for the Test Client, especially the customized assertions. """ -from __future__ import unicode_literals - import itertools import os diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py index d6e9af71a1b2..670bc6683ce3 100644 --- a/tests/test_runner/tests.py +++ b/tests/test_runner/tests.py @@ -1,8 +1,6 @@ """ Tests for django test runner """ -from __future__ import unicode_literals - import unittest from admin_scripts.tests import AdminScriptTestCase diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 2a199ec5bceb..e63c6774ae69 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys import unittest diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py index 8f9bd23241de..7f7c8228e810 100644 --- a/tests/timezones/tests.py +++ b/tests/timezones/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import re import sys diff --git a/tests/transactions/models.py b/tests/transactions/models.py index f4400363e568..4154b3912307 100644 --- a/tests/transactions/models.py +++ b/tests/transactions/models.py @@ -6,8 +6,6 @@ commit-on-success behavior. Alternatively, you can manage the transaction manually. """ -from __future__ import unicode_literals - from django.db import models from django.utils.encoding import python_2_unicode_compatible diff --git a/tests/transactions/tests.py b/tests/transactions/tests.py index 7dc21cca4f66..12d2eb299dbf 100644 --- a/tests/transactions/tests.py +++ b/tests/transactions/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os import signal import sys diff --git a/tests/unmanaged_models/tests.py b/tests/unmanaged_models/tests.py index e98cee8ae178..250aaaa4354b 100644 --- a/tests/unmanaged_models/tests.py +++ b/tests/unmanaged_models/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db import connection from django.test import TestCase diff --git a/tests/update/tests.py b/tests/update/tests.py index ca1c5ac4f972..55a8e24c6ac1 100644 --- a/tests/update/tests.py +++ b/tests/update/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import FieldError from django.db.models import Count, F, Max from django.test import TestCase diff --git a/tests/update_only_fields/tests.py b/tests/update_only_fields/tests.py index 7627bcd378eb..743b5fda8d95 100644 --- a/tests/update_only_fields/tests.py +++ b/tests/update_only_fields/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.db.models.signals import post_save, pre_save from django.test import TestCase diff --git a/tests/urlpatterns_reverse/test_localeregexprovider.py b/tests/urlpatterns_reverse/test_localeregexprovider.py index 401e9a1ad03f..53dc744c772c 100644 --- a/tests/urlpatterns_reverse/test_localeregexprovider.py +++ b/tests/urlpatterns_reverse/test_localeregexprovider.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import os from django.core.exceptions import ImproperlyConfigured diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index 5f824469fa8f..a84e5bfb2462 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -1,9 +1,6 @@ -# -*- coding: utf-8 -*- """ Unit tests for reverse URL lookups. """ -from __future__ import unicode_literals - import sys import threading import unittest diff --git a/tests/urlpatterns_reverse/utils.py b/tests/urlpatterns_reverse/utils.py index adcb310fa543..22664480d168 100644 --- a/tests/urlpatterns_reverse/utils.py +++ b/tests/urlpatterns_reverse/utils.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.conf.urls import url from . import views diff --git a/tests/utils_tests/test_crypto.py b/tests/utils_tests/test_crypto.py index d36f82e5920f..bd0c111ff34a 100644 --- a/tests/utils_tests/test_crypto.py +++ b/tests/utils_tests/test_crypto.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import binascii import hashlib import unittest diff --git a/tests/utils_tests/test_dateformat.py b/tests/utils_tests/test_dateformat.py index bd99b31a426e..c11dd5591d70 100644 --- a/tests/utils_tests/test_dateformat.py +++ b/tests/utils_tests/test_dateformat.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import date, datetime from django.test import SimpleTestCase, override_settings diff --git a/tests/utils_tests/test_dateparse.py b/tests/utils_tests/test_dateparse.py index 0bb81ed0b017..0f48ff4ff982 100644 --- a/tests/utils_tests/test_dateparse.py +++ b/tests/utils_tests/test_dateparse.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from datetime import date, datetime, time, timedelta diff --git a/tests/utils_tests/test_encoding.py b/tests/utils_tests/test_encoding.py index 688b46194d67..1d6976fc7751 100644 --- a/tests/utils_tests/test_encoding.py +++ b/tests/utils_tests/test_encoding.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import datetime import unittest diff --git a/tests/utils_tests/test_feedgenerator.py b/tests/utils_tests/test_feedgenerator.py index 9b249295c3f1..8c0edb4374a3 100644 --- a/tests/utils_tests/test_feedgenerator.py +++ b/tests/utils_tests/test_feedgenerator.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import unittest diff --git a/tests/utils_tests/test_functional.py b/tests/utils_tests/test_functional.py index 7a633620fc30..f7b12724af8a 100644 --- a/tests/utils_tests/test_functional.py +++ b/tests/utils_tests/test_functional.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import unittest from django.utils import six diff --git a/tests/utils_tests/test_glob.py b/tests/utils_tests/test_glob.py index 7e72815ef851..5cd7fbbe28c8 100644 --- a/tests/utils_tests/test_glob.py +++ b/tests/utils_tests/test_glob.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.test import SimpleTestCase from django.utils.glob import glob_escape diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 39d590032fb1..ec818318b4be 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from datetime import datetime diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py index e90d5e397d82..30a884602192 100644 --- a/tests/utils_tests/test_http.py +++ b/tests/utils_tests/test_http.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - import sys import unittest from datetime import datetime diff --git a/tests/utils_tests/test_ipv6.py b/tests/utils_tests/test_ipv6.py index 84630d2ba066..4e434f3c3aa0 100644 --- a/tests/utils_tests/test_ipv6.py +++ b/tests/utils_tests/test_ipv6.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest from django.utils.ipv6 import clean_ipv6_address, is_valid_ipv6_address diff --git a/tests/utils_tests/test_jslex.py b/tests/utils_tests/test_jslex.py index f77be16b7f89..6b4269736a84 100644 --- a/tests/utils_tests/test_jslex.py +++ b/tests/utils_tests/test_jslex.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- """Tests for jslex.""" # originally from https://bitbucket.org/ned/jslex -from __future__ import unicode_literals from django.test import SimpleTestCase from django.utils.jslex import JsLexer, prepare_js_for_gettext diff --git a/tests/utils_tests/test_lazyobject.py b/tests/utils_tests/test_lazyobject.py index 9dc225b55f8a..588e85afc58a 100644 --- a/tests/utils_tests/test_lazyobject.py +++ b/tests/utils_tests/test_lazyobject.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import copy import pickle import sys diff --git a/tests/utils_tests/test_lorem_ipsum.py b/tests/utils_tests/test_lorem_ipsum.py index 9b160cd2fbc6..b90190298a6f 100644 --- a/tests/utils_tests/test_lorem_ipsum.py +++ b/tests/utils_tests/test_lorem_ipsum.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import unittest from django.utils.lorem_ipsum import paragraphs, words diff --git a/tests/utils_tests/test_numberformat.py b/tests/utils_tests/test_numberformat.py index 3dd1b0644ff2..dd6057bb6456 100644 --- a/tests/utils_tests/test_numberformat.py +++ b/tests/utils_tests/test_numberformat.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - from decimal import Decimal from sys import float_info from unittest import TestCase diff --git a/tests/utils_tests/test_regex_helper.py b/tests/utils_tests/test_regex_helper.py index f91fd1cec7ed..93383e1c1ad2 100644 --- a/tests/utils_tests/test_regex_helper.py +++ b/tests/utils_tests/test_regex_helper.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import unittest import warnings diff --git a/tests/utils_tests/test_safestring.py b/tests/utils_tests/test_safestring.py index abaf6a059655..96f42d5ddd06 100644 --- a/tests/utils_tests/test_safestring.py +++ b/tests/utils_tests/test_safestring.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.template import Context, Template from django.test import SimpleTestCase from django.utils import html, six, text diff --git a/tests/utils_tests/test_simplelazyobject.py b/tests/utils_tests/test_simplelazyobject.py index bad47a2f899d..8501b89e9297 100644 --- a/tests/utils_tests/test_simplelazyobject.py +++ b/tests/utils_tests/test_simplelazyobject.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import pickle from django.contrib.auth.models import User diff --git a/tests/utils_tests/test_text.py b/tests/utils_tests/test_text.py index 3dfc33a12060..9128fb02476f 100644 --- a/tests/utils_tests/test_text.py +++ b/tests/utils_tests/test_text.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import json from django.test import SimpleTestCase diff --git a/tests/utils_tests/test_timesince.py b/tests/utils_tests/test_timesince.py index 645806a96bcd..3e2c5ce56efa 100644 --- a/tests/utils_tests/test_timesince.py +++ b/tests/utils_tests/test_timesince.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import unittest diff --git a/tests/validation/models.py b/tests/validation/models.py index 2e2a144cb6e3..90b2dbb79a5e 100644 --- a/tests/validation/models.py +++ b/tests/validation/models.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from datetime import datetime from django.core.exceptions import ValidationError diff --git a/tests/validation/test_error_messages.py b/tests/validation/test_error_messages.py index c71b8cd60ab5..d2fc3e493962 100644 --- a/tests/validation/test_error_messages.py +++ b/tests/validation/test_error_messages.py @@ -1,6 +1,3 @@ -# -*- encoding: utf-8 -*- -from __future__ import unicode_literals - from unittest import TestCase from django.core.exceptions import ValidationError diff --git a/tests/validation/test_unique.py b/tests/validation/test_unique.py index 0780b9ec4341..642154aaa706 100644 --- a/tests/validation/test_unique.py +++ b/tests/validation/test_unique.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import unittest diff --git a/tests/validation/test_validators.py b/tests/validation/test_validators.py index 4a3c99f08b17..733ff5c139d3 100644 --- a/tests/validation/test_validators.py +++ b/tests/validation/test_validators.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from . import ValidationTestCase from .models import ModelToValidate diff --git a/tests/validation/tests.py b/tests/validation/tests.py index e7a49b470d42..131ecda74dfc 100644 --- a/tests/validation/tests.py +++ b/tests/validation/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django import forms from django.core.exceptions import NON_FIELD_ERRORS from django.test import TestCase diff --git a/tests/validators/tests.py b/tests/validators/tests.py index 4ef8a524b121..d5fb2215ca54 100644 --- a/tests/validators/tests.py +++ b/tests/validators/tests.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import io import os import re diff --git a/tests/view_tests/__init__.py b/tests/view_tests/__init__.py index 638df1b91a6b..f48b197507df 100644 --- a/tests/view_tests/__init__.py +++ b/tests/view_tests/__init__.py @@ -1,7 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - - class BrokenException(Exception): pass diff --git a/tests/view_tests/generic_urls.py b/tests/view_tests/generic_urls.py index 4ca2c8927adf..2c40383a2d84 100644 --- a/tests/view_tests/generic_urls.py +++ b/tests/view_tests/generic_urls.py @@ -1,6 +1,3 @@ -# -*- coding:utf-8 -*- -from __future__ import unicode_literals - from django.conf.urls import url from django.contrib.auth import views as auth_views from django.views.generic import RedirectView diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index 24fa59362160..19ab456ba5bb 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -1,8 +1,3 @@ -# -*- coding: utf-8 -*- -# This coding header is significant for tests, as the debug view is parsing -# files to search for such a header to decode the source file content -from __future__ import unicode_literals - import importlib import inspect import os diff --git a/tests/view_tests/tests/test_defaults.py b/tests/view_tests/tests/test_defaults.py index 1b5ad2510270..4b002f363225 100644 --- a/tests/view_tests/tests/test_defaults.py +++ b/tests/view_tests/tests/test_defaults.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime from django.contrib.sites.models import Site diff --git a/tests/view_tests/tests/test_i18n.py b/tests/view_tests/tests/test_i18n.py index 725d72890ea1..fc7be41594b2 100644 --- a/tests/view_tests/tests/test_i18n.py +++ b/tests/view_tests/tests/test_i18n.py @@ -1,6 +1,3 @@ -# -*- coding:utf-8 -*- -from __future__ import unicode_literals - import gettext import json from os import path diff --git a/tests/view_tests/tests/test_json.py b/tests/view_tests/tests/test_json.py index 0d6bc09120e2..34e8fa359bb2 100644 --- a/tests/view_tests/tests/test_json.py +++ b/tests/view_tests/tests/test_json.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import json from django.test import SimpleTestCase, override_settings diff --git a/tests/view_tests/tests/test_specials.py b/tests/view_tests/tests/test_specials.py index 8ef766e86f0f..70ffb1d23ec2 100644 --- a/tests/view_tests/tests/test_specials.py +++ b/tests/view_tests/tests/test_specials.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import SimpleTestCase, override_settings diff --git a/tests/view_tests/tests/test_static.py b/tests/view_tests/tests/test_static.py index 457577264e4a..f1a992789fdc 100644 --- a/tests/view_tests/tests/test_static.py +++ b/tests/view_tests/tests/test_static.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import mimetypes import unittest from os import path diff --git a/tests/view_tests/urls.py b/tests/view_tests/urls.py index 128be09eb6fe..c536ea78edd5 100644 --- a/tests/view_tests/urls.py +++ b/tests/view_tests/urls.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from functools import partial from os import path diff --git a/tests/view_tests/views.py b/tests/view_tests/views.py index bfcdc20a1380..5c6311140544 100644 --- a/tests/view_tests/views.py +++ b/tests/view_tests/views.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import datetime import decimal import logging diff --git a/tests/wsgi/tests.py b/tests/wsgi/tests.py index e07f8d247833..68e8d4a86d41 100644 --- a/tests/wsgi/tests.py +++ b/tests/wsgi/tests.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.core.exceptions import ImproperlyConfigured from django.core.servers.basehttp import get_internal_wsgi_application from django.core.signals import request_started