mirror of
https://github.com/django/django.git
synced 2025-09-11 13:06:29 +00:00
Fixed #20989 -- Removed explicit list comprehension inside dict() and tuple()
Thanks jeroen.pulles at redslider.net for the suggestion and helper script.
This commit is contained in:
parent
f19a3669b8
commit
c7d0ff0cad
23 changed files with 38 additions and 38 deletions
|
@ -537,4 +537,4 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
|||
match = server_version_re.match(server_info)
|
||||
if not match:
|
||||
raise Exception('Unable to determine MySQL version from version string %r' % server_info)
|
||||
return tuple([int(x) for x in match.groups()])
|
||||
return tuple(int(x) for x in match.groups())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue