Commits

Jason R. Coombs committed 21d55f4

Try using true division instead of casting to float

  • Participants
  • Parent commits 363bd96

Comments (0)

Files changed (1)

+from __future__ import division
+
 # from jaraco.util.itertools
 def always_iterable(item):
     """
         result = td.total_seconds()
     except AttributeError:
         seconds = td.seconds + td.days * 24 * 3600
-        result = float((td.microseconds + seconds * 10**6) / 10**6)
+        result = (td.microseconds + seconds * 10**6) / 10**6
     return result