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:
Tim Graham 2013-08-29 12:09:35 -04:00
parent f19a3669b8
commit c7d0ff0cad
23 changed files with 38 additions and 38 deletions

View file

@ -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())