Skip to content

Commit

Permalink
Replace tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemacfarlane committed Oct 11, 2014
1 parent 593840b commit 7c42ec5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/z3c/rml/attr.py
Expand Up @@ -275,12 +275,12 @@ def __init__(self, allowPercentage=False, allowStar=False, *args, **kw):
self.allowStar = allowStar

units = [
(re.compile('^(-?[0-9\.]+)\s*in$'), reportlab.lib.units.inch),
(re.compile('^(-?[0-9\.]+)\s*cm$'), reportlab.lib.units.cm),
(re.compile('^(-?[0-9\.]+)\s*mm$'), reportlab.lib.units.mm),
(re.compile('^(-?[0-9\.]+)\s*pt$'), 1),
(re.compile('^(-?[0-9\.]+)\s*$'), 1)
]
(re.compile('^(-?[0-9\.]+)\s*in$'), reportlab.lib.units.inch),
(re.compile('^(-?[0-9\.]+)\s*cm$'), reportlab.lib.units.cm),
(re.compile('^(-?[0-9\.]+)\s*mm$'), reportlab.lib.units.mm),
(re.compile('^(-?[0-9\.]+)\s*pt$'), 1),
(re.compile('^(-?[0-9\.]+)\s*$'), 1)
]

allowPercentage = False
allowStar = False
Expand All @@ -292,7 +292,7 @@ def fromUnicode(self, value):
return value
if value.endswith('%') and self.allowPercentage:
return value
for unit in self.units:
for unit in self.units:
res = unit[0].search(value, 0)
if res:
return unit[1]*float(res.group(1))
Expand Down

0 comments on commit 7c42ec5

Please sign in to comment.