Switched to tuple for python 2.6 compatibility
This commit is contained in:
@@ -623,7 +623,7 @@ def to_units_container(unit_like, registry=None):
|
|||||||
elif dict in mro:
|
elif dict in mro:
|
||||||
return UnitsContainer(unit_like)
|
return UnitsContainer(unit_like)
|
||||||
|
|
||||||
_prefixes = {'atto',
|
_prefixes = ('atto',
|
||||||
'exa',
|
'exa',
|
||||||
'femto',
|
'femto',
|
||||||
'giga',
|
'giga',
|
||||||
@@ -650,7 +650,7 @@ _prefixes = {'atto',
|
|||||||
'pebi',
|
'pebi',
|
||||||
'exbi',
|
'exbi',
|
||||||
'zebi',
|
'zebi',
|
||||||
'yobi'}
|
'yobi')
|
||||||
|
|
||||||
_prefixes_regex = '^('+'|'.join(_prefixes)+')+'
|
_prefixes_regex = '^('+'|'.join(_prefixes)+')+'
|
||||||
_find_prefixes = re.compile(_prefixes_regex)
|
_find_prefixes = re.compile(_prefixes_regex)
|
||||||
|
|||||||
Reference in New Issue
Block a user