Switch to using Python 3 style division everywhere.
Also add testing for this to our Python 3 compatibility test suite.
This commit is contained in:
parent
4dc5761ce2
commit
a8c4facc67
|
@ -9,6 +9,7 @@
|
||||||
#
|
#
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
from __future__ import division
|
||||||
import sys
|
import sys
|
||||||
import six
|
import six
|
||||||
from six.moves import input
|
from six.moves import input
|
||||||
|
@ -2921,7 +2922,7 @@ class P4Sync(Command, P4UserMap):
|
||||||
b = b[len(self.projectName):]
|
b = b[len(self.projectName):]
|
||||||
self.createdBranches.add(b)
|
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"],
|
self.importProcess = subprocess.Popen(["git", "fast-import"],
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
from __future__ import division
|
||||||
import simplejson
|
import simplejson
|
||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
|
|
Loading…
Reference in a new issue