summaryrefslogtreecommitdiff
path: root/optik_ext.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2009-10-01 17:40:00 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2009-10-01 17:40:00 +0200
commitfdd8c42fb59e79734c80d422a9e9e880b3c3dd28 (patch)
tree6e4f4af7275ef6eabcf2a59124bd9d5516fc3e14 /optik_ext.py
parent177cdde7bfb744a86f8eac9fce07978075aabed8 (diff)
downloadlogilab-common-fdd8c42fb59e79734c80d422a9e9e880b3c3dd28.tar.gz
time may be float
Diffstat (limited to 'optik_ext.py')
-rw-r--r--optik_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/optik_ext.py b/optik_ext.py
index 0b1a1b6..7305b7b 100644
--- a/optik_ext.py
+++ b/optik_ext.py
@@ -170,7 +170,7 @@ def check_color(option, opt, value):
def check_time(option, opt, value):
from logilab.common.textutils import TIME_UNITS, apply_units
- if isinstance(value, (int, long)):
+ if isinstance(value, (int, long, float)):
return value
return apply_units(value, TIME_UNITS)