]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
remove/simplify useless code lines
authorFelix Schwarz <felix.schwarz@oss.schwarz.eu>
Mon, 26 Sep 2011 16:57:21 +0000 (16:57 +0000)
committerFelix Schwarz <felix.schwarz@oss.schwarz.eu>
Mon, 26 Sep 2011 16:57:21 +0000 (16:57 +0000)
babel/messages/pofile.py
babel/numbers.py

index 5a0ef298e48016876368f4da185acadf88eaa744..a5e45aeb9c3e1be1562365c602e4d177b2d7517d 100644 (file)
@@ -303,7 +303,7 @@ def normalize(string, prefix='', width=76):
     if width and width > 0:
         prefixlen = len(prefix)
         lines = []
-        for idx, line in enumerate(string.splitlines(True)):
+        for line in string.splitlines(True):
             if len(escape(line)) + prefixlen > width:
                 chunks = WORD_SEP.split(line)
                 chunks.reverse()
index 5ea6c381008e9d07a1dca35a297cec5438f8a911..632dd6409f2ce93b0b6673c6df94df625c0eacf3 100644 (file)
@@ -401,7 +401,6 @@ def parse_pattern(pattern):
     else:
         integer = number
         fraction = ''
-    min_frac = max_frac = 0
 
     def parse_precision(p):
         """Calculate the min and max allowed digits"""