Skip to content

Commit

Permalink
Fix regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Jun 9, 2017
1 parent df0153a commit 4887fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions babel/numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,9 @@ def scale(self):
detected in the pattern. Default is to not mess with the scale at all.
"""
scale = 0
if '%' in self.prefix + self.suffix:
if '%' in ''.join(self.prefix + self.suffix):
scale = 2
elif u'‰' in self.prefix + self.suffix:
elif u'‰' in ''.join(self.prefix + self.suffix):
scale = 3
return scale

Expand Down

0 comments on commit 4887fdf

Please sign in to comment.