Mercurial > babel > mirror
comparison babel/numbers.py @ 568:39ff5164e8ea trunk
remove/simplify useless code lines
author | fschwarz |
---|---|
date | Mon, 26 Sep 2011 16:57:21 +0000 |
parents | 4e561e6411ba |
children | e77dd06c40ef |
comparison
equal
deleted
inserted
replaced
567:c81a11cb1476 | 568:39ff5164e8ea |
---|---|
399 if '.' in number: | 399 if '.' in number: |
400 integer, fraction = number.rsplit('.', 1) | 400 integer, fraction = number.rsplit('.', 1) |
401 else: | 401 else: |
402 integer = number | 402 integer = number |
403 fraction = '' | 403 fraction = '' |
404 min_frac = max_frac = 0 | |
405 | 404 |
406 def parse_precision(p): | 405 def parse_precision(p): |
407 """Calculate the min and max allowed digits""" | 406 """Calculate the min and max allowed digits""" |
408 min = max = 0 | 407 min = max = 0 |
409 for c in p: | 408 for c in p: |