summaryrefslogtreecommitdiff
path: root/taskflow/utils/persistence_utils.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2013-11-16 02:44:14 -0800
committerAlexander Gorodnev <agorodnev@griddynamics.com>2013-11-21 18:38:44 +0400
commitdb15db8186f73f7129d6130099dc793bf475f890 (patch)
treec4e1c116a504f65967fbb25b7c2b718506c052c3 /taskflow/utils/persistence_utils.py
parent359ce523f442e3c3c5f762a966e92d44c9b700ab (diff)
downloadtaskflow-db15db8186f73f7129d6130099dc793bf475f890.tar.gz
Fix up python 3.3 incompatabilities
Make the python 3.3 testing work by selectively disabling & including eventlet, switch to testtools and testrepository which has 2.6, 2.7, 3.2+ unified testing support so that we can correctly run our tests in all supported python versions. Closes-Bug: #1251660 Co-authored-by: Alexander Gorodnev <agorodnev@griddynamics.com> Change-Id: I23b6f04387cfd3bf6b5a044edffa446ca897ce3a
Diffstat (limited to 'taskflow/utils/persistence_utils.py')
-rw-r--r--taskflow/utils/persistence_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/taskflow/utils/persistence_utils.py b/taskflow/utils/persistence_utils.py
index e5dbd34..aff635e 100644
--- a/taskflow/utils/persistence_utils.py
+++ b/taskflow/utils/persistence_utils.py
@@ -207,7 +207,7 @@ def _format_meta(metadata, indent):
for (k, v) in metadata.items():
# Progress for now is a special snowflake and will be formatted
# in percent format.
- if k == 'progress' and isinstance(v, (float, int, long)):
+ if k == 'progress' and isinstance(v, misc.NUMERIC_TYPES):
v = "%0.2f%%" % (v * 100.0)
lines.append("%s+ %s = %s" % (" " * (indent + 2), k, v))
return lines