Switched to tuple for python 2.6 compatibility

This commit is contained in:
Ryan Dwyer
2015-01-13 15:30:18 -05:00
parent 504369900a
commit a85eceff3b

View File

@@ -623,7 +623,7 @@ def to_units_container(unit_like, registry=None):
elif dict in mro:
return UnitsContainer(unit_like)
_prefixes = {'atto',
_prefixes = ('atto',
'exa',
'femto',
'giga',
@@ -650,7 +650,7 @@ _prefixes = {'atto',
'pebi',
'exbi',
'zebi',
'yobi'}
'yobi')
_prefixes_regex = '^('+'|'.join(_prefixes)+')+'
_find_prefixes = re.compile(_prefixes_regex)