diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-04-24 22:25:56 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-04-24 22:25:56 (GMT) |
commit | bcdc9a412521ae0b9f9aea7997a880af6dbda2a6 (patch) | |
tree | bbdcd3f7da00dc5fcfa712bfaf148f392ac12fda /src/script | |
parent | ed90f2420a34f20480311261cf8663803ca65b6e (diff) | |
download | SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.zip SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.gz SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.bz2 |
Convert to Python 3.x division rules.
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/scons-time.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py index b35cc32..37ee593 100644 --- a/src/script/scons-time.py +++ b/src/script/scons-time.py @@ -29,7 +29,7 @@ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# +from __future__ import division from __future__ import nested_scopes __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" @@ -120,12 +120,12 @@ class Plotter: between 5 and 9 horizontal lines on the graph, on some set of boundaries that are multiples of 10/100/1000/etc. """ - i = largest / 5 + i = largest // 5 if not i: return largest multiplier = 1 while i >= 10: - i = i / 10 + i = i // 10 multiplier = multiplier * 10 return i * multiplier @@ -133,7 +133,7 @@ class Plotter: # Round up to next integer. largest = int(largest) + 1 increment = self.increment_size(largest) - return ((largest + increment - 1) / increment) * increment + return ((largest + increment - 1) // increment) * increment class Line: def __init__(self, points, type, title, label, comment, fmt="%s %s"): |