mirror of
https://github.com/django/django.git
synced 2025-08-13 05:19:12 +00:00
Fixed #21287 -- Fixed E123 pep8 warnings
This commit is contained in:
parent
65750b8352
commit
a800036981
@ -51,7 +51,7 @@ interstate_data = (
|
|||||||
15.544, 14.975, 15.688, 16.099, 15.197, 17.268, 19.857,
|
15.544, 14.975, 15.688, 16.099, 15.197, 17.268, 19.857,
|
||||||
15.435),
|
15.435),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Bounding box polygon for inner-loop of Houston (in projected coordinate
|
# Bounding box polygon for inner-loop of Houston (in projected coordinate
|
||||||
# system 32140), with elevation values from the National Elevation Dataset
|
# system 32140), with elevation values from the National Elevation Dataset
|
||||||
|
@ -495,7 +495,7 @@ constant_string = r"""
|
|||||||
'strsq': r"'[^'\\]*(?:\\.[^'\\]*)*'", # single-quoted string
|
'strsq': r"'[^'\\]*(?:\\.[^'\\]*)*'", # single-quoted string
|
||||||
'i18n_open': re.escape("_("),
|
'i18n_open': re.escape("_("),
|
||||||
'i18n_close': re.escape(")"),
|
'i18n_close': re.escape(")"),
|
||||||
}
|
}
|
||||||
constant_string = constant_string.replace("\n", "")
|
constant_string = constant_string.replace("\n", "")
|
||||||
|
|
||||||
filter_raw_string = r"""
|
filter_raw_string = r"""
|
||||||
|
@ -77,11 +77,11 @@
|
|||||||
TEMPLATE_EXTENSIONS = [
|
TEMPLATE_EXTENSIONS = [
|
||||||
".html",
|
".html",
|
||||||
".htm",
|
".htm",
|
||||||
]
|
]
|
||||||
|
|
||||||
PYTHON_SOURCE_EXTENSIONS = [
|
PYTHON_SOURCE_EXTENSIONS = [
|
||||||
".py",
|
".py",
|
||||||
]
|
]
|
||||||
|
|
||||||
TEMPLATE_ENCODING = "UTF-8"
|
TEMPLATE_ENCODING = "UTF-8"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ install-script = scripts/rpm-install.sh
|
|||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./tests/comment_tests/*,./django/test/_doctest.py
|
exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./tests/comment_tests/*,./django/test/_doctest.py
|
||||||
ignore=E123,E124,E125,E126,E127,E128,E225,E226,E241,E251,E302,E501,E203,E221,E227,E231,E261,E301,F401,F403,F841,W601
|
ignore=E124,E125,E126,E127,E128,E225,E226,E241,E251,E302,E501,E203,E221,E227,E231,E261,E301,F401,F403,F841,W601
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
license-file = LICENSE
|
license-file = LICENSE
|
||||||
|
@ -559,7 +559,7 @@ def naturalKeyTest(format, self):
|
|||||||
for format in [
|
for format in [
|
||||||
f for f in serializers.get_serializer_formats()
|
f for f in serializers.get_serializer_formats()
|
||||||
if not isinstance(serializers.get_serializer(f), serializers.BadSerializer)
|
if not isinstance(serializers.get_serializer(f), serializers.BadSerializer)
|
||||||
]:
|
]:
|
||||||
setattr(SerializerTests, 'test_' + format + '_serializer', curry(serializerTest, format))
|
setattr(SerializerTests, 'test_' + format + '_serializer', curry(serializerTest, format))
|
||||||
setattr(SerializerTests, 'test_' + format + '_natural_key_serializer', curry(naturalKeySerializerTest, format))
|
setattr(SerializerTests, 'test_' + format + '_natural_key_serializer', curry(naturalKeySerializerTest, format))
|
||||||
setattr(SerializerTests, 'test_' + format + '_serializer_fields', curry(fieldsTest, format))
|
setattr(SerializerTests, 'test_' + format + '_serializer_fields', curry(fieldsTest, format))
|
||||||
|
@ -7,4 +7,4 @@ def helloworld(request):
|
|||||||
urlpatterns = patterns(
|
urlpatterns = patterns(
|
||||||
"",
|
"",
|
||||||
url("^$", helloworld)
|
url("^$", helloworld)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user