From a8c4facc678744b9eaa4707230f0076479b5f043 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 23 Jan 2016 18:56:05 -0800 Subject: [PATCH] Switch to using Python 3 style division everywhere. Also add testing for this to our Python 3 compatibility test suite. --- integrations/perforce/git_p4.py | 3 ++- zulip/__init__.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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