diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2011-09-06 10:54:34 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2011-09-06 10:54:34 +0200 |
commit | 05683971ad8fcd5f6049e98093da9136c90b546e (patch) | |
tree | 0493404841ae8b94b2308f9cda487e2a68a724fa | |
parent | 1a56720e64a9d90eca7193b5c676930bd66f3620 (diff) | |
download | logilab-common-05683971ad8fcd5f6049e98093da9136c90b546e.tar.gz |
cleanup
-rw-r--r-- | textutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/textutils.py b/textutils.py index f934e76..bdeed41 100644 --- a/textutils.py +++ b/textutils.py @@ -330,8 +330,8 @@ TIME_UNITS = { "d": 60 * 60 *24, } -def apply_units( string, units, inter=None, final=float, blank_reg=_BLANK_RE, - value_reg=_VALUE_RE): +def apply_units(string, units, inter=None, final=float, blank_reg=_BLANK_RE, + value_reg=_VALUE_RE): """Parse the string applying the units defined in units (e.g.: "1.5m",{'m',60} -> 80). |