Skip to content

Commit

Permalink
Apply Python 3 futurize transform libmodernize.fixes.fix_zip.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott committed Nov 1, 2015
1 parent f7878a6 commit 607eedf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analytics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from six.moves import filter
from six.moves import map
from six.moves import range
from six.moves import zip
eastern_tz = pytz.timezone('US/Eastern')

def make_table(title, cols, rows, has_row_class=False):
Expand All @@ -41,7 +42,7 @@ def dictfetchall(cursor):
"Returns all rows from a cursor as a dict"
desc = cursor.description
return [
dict(zip([col[0] for col in desc], row))
dict(list(zip([col[0] for col in desc], row)))
for row in cursor.fetchall()
]

Expand Down
1 change: 1 addition & 0 deletions api/integrations/perforce/git_p4.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import six
from six.moves import input
from six.moves import range
from six.moves import zip
if sys.hexversion < 0x02040000:
# The limiter is the subprocess module
sys.stderr.write("git-p4: requires Python 2.4 or later.\n")
Expand Down
1 change: 1 addition & 0 deletions zerver/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import logging
import cProfile
from zerver.lib.mandrill_client import get_mandrill_client
from six.moves import zip

if settings.ZULIP_COM:
from zilencer.models import get_deployment_by_domain, Deployment
Expand Down

0 comments on commit 607eedf

Please sign in to comment.