diff options
author | Nick Pope <nick.pope@flightdataservices.com> | 2017-12-22 02:05:23 +0000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-12-21 21:05:23 -0500 |
commit | f3a98224e6dd5f8846008512f281e452dc3b1909 (patch) | |
tree | 203078803346d9465e21b963bf9c1007c3a154c2 /django/db/backends/oracle/introspection.py | |
parent | ebc4ee3369694e6dca5cf216d4176bdefd930fd6 (diff) | |
download | django-f3a98224e6dd5f8846008512f281e452dc3b1909.tar.gz |
Refs #28909 -- Simplifed code using unpacking generalizations.
Diffstat (limited to 'django/db/backends/oracle/introspection.py')
-rw-r--r-- | django/db/backends/oracle/introspection.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index dbd54c29be..f7ede7db13 100644 --- a/django/db/backends/oracle/introspection.py +++ b/django/db/backends/oracle/introspection.py @@ -84,13 +84,10 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): name = desc[0] internal_size, default, is_autofield = field_map[name] name = name % {} # cx_Oracle, for some reason, doubles percent signs. - description.append(FieldInfo(*( - (name.lower(),) + - desc[1:3] + - (internal_size, desc[4] or 0, desc[5] or 0) + - desc[6:] + - (default, is_autofield) - ))) + description.append(FieldInfo( + name.lower(), *desc[1:3], internal_size, desc[4] or 0, + desc[5] or 0, *desc[6:], default, is_autofield, + )) return description def table_name_converter(self, name): |