Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #23919 -- Removed encoding preambles and future imports #7867

Merged
merged 1 commit into from Jan 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions 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)
Expand Down
2 changes: 1 addition & 1 deletion 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.
2 changes: 1 addition & 1 deletion 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):
Expand Down
2 changes: 1 addition & 1 deletion 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.
2 changes: 1 addition & 1 deletion 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.
2 changes: 1 addition & 1 deletion 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.
2 changes: 0 additions & 2 deletions 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
Expand Down
3 changes: 0 additions & 3 deletions 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.

Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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.'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
4 changes: 0 additions & 4 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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 =
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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.'
Expand Down
3 changes: 0 additions & 3 deletions 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.'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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'
Expand Down
3 changes: 0 additions & 3 deletions 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
Expand Down