diff --git a/integrations/perforce/git_p4.py b/integrations/perforce/git_p4.py index 45378a0..dec6a3e 100644 --- a/integrations/perforce/git_p4.py +++ b/integrations/perforce/git_p4.py @@ -9,6 +9,7 @@ # from __future__ import print_function from __future__ import absolute_import +from __future__ import division import sys import six from six.moves import input @@ -2921,7 +2922,7 @@ class P4Sync(Command, P4UserMap): b = b[len(self.projectName):] self.createdBranches.add(b) - self.tz = "%+03d%02d" % (- time.timezone / 3600, ((- time.timezone % 3600) / 60)) + self.tz = "%+03d%02d" % (- time.timezone / 3600, ((- time.timezone % 3600) // 60)) self.importProcess = subprocess.Popen(["git", "fast-import"], stdin=subprocess.PIPE, diff --git a/zulip/__init__.py b/zulip/__init__.py index 2377d06..7aba507 100644 --- a/zulip/__init__.py +++ b/zulip/__init__.py @@ -22,6 +22,7 @@ from __future__ import print_function from __future__ import absolute_import +from __future__ import division import simplejson import requests import time