diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
index 5128a28..ace9530 100644
|
a
|
b
|
from __future__ import unicode_literals
|
| 6 | 6 | |
| 7 | 7 | # This is defined here as a do-nothing function because we can't import |
| 8 | 8 | # django.utils.translation -- that module depends on the settings. |
| 9 | | gettext_noop = lambda s: s |
| | 9 | def gettext_noop(s): |
| | 10 | return s |
| 10 | 11 | |
| 11 | 12 | #################### |
| 12 | 13 | # CORE # |
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py
index 6e5aff1..d68a5aa 100644
|
a
|
b
|
class BaseDatabaseOperations(object):
|
| 204 | 204 | according to their own quoting schemes. |
| 205 | 205 | """ |
| 206 | 206 | # Convert params to contain Unicode values. |
| 207 | | to_unicode = lambda s: force_text(s, strings_only=True, errors='replace') |
| | 207 | def to_unicode(s): |
| | 208 | return force_text(s, strings_only=True, errors='replace') |
| 208 | 209 | if isinstance(params, (list, tuple)): |
| 209 | 210 | u_params = tuple(to_unicode(val) for val in params) |
| 210 | 211 | elif params is None: |
diff --git a/setup.cfg b/setup.cfg
index 9ba3316..8579282 100644
|
a
|
b
|
install-script = scripts/rpm-install.sh
|
| 4 | 4 | |
| 5 | 5 | [flake8] |
| 6 | 6 | exclude = build,.git,./django/utils/lru_cache.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py,./tests/.env,./xmlrunner,tests/view_tests/tests/py3_test_debug.py,tests/template_tests/annotated_tag_function.py |
| 7 | | ignore = E123,E128,E402,W503,E731,W601 |
| | 7 | ignore = E123,E128,E402,W503,W601 |
| 8 | 8 | max-line-length = 119 |
| 9 | 9 | |
| 10 | 10 | [isort] |
diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py
index 203f254..7e81163 100644
|
a
|
b
|
class LookupTests(TestCase):
|
| 141 | 141 | def test_values(self): |
| 142 | 142 | # values() returns a list of dictionaries instead of object instances -- |
| 143 | 143 | # and you can specify which fields you want to retrieve. |
| 144 | | identity = lambda x: x |
| | 144 | def identity(x): |
| | 145 | return x |
| 145 | 146 | self.assertQuerysetEqual(Article.objects.values('headline'), |
| 146 | 147 | [ |
| 147 | 148 | {'headline': 'Article 5'}, |