diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-10-01 17:40:00 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-10-01 17:40:00 +0200 |
commit | fdd8c42fb59e79734c80d422a9e9e880b3c3dd28 (patch) | |
tree | 6e4f4af7275ef6eabcf2a59124bd9d5516fc3e14 /optik_ext.py | |
parent | 177cdde7bfb744a86f8eac9fce07978075aabed8 (diff) | |
download | logilab-common-fdd8c42fb59e79734c80d422a9e9e880b3c3dd28.tar.gz |
time may be float
Diffstat (limited to 'optik_ext.py')
-rw-r--r-- | optik_ext.py | 2 |
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) |