[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.52-4-g9497c7b

Andreas Beckmann anbe at debian.org
Mon May 27 16:41:47 UTC 2013


The following commit has been merged in the develop branch:
commit 2860f97c2c0b0fbc2a922cfc7c9778240e463e68
Author: Andreas Beckmann <anbe at debian.org>
Date:   Fri May 24 10:22:03 2013 +0200

    Revert "detect_well_known_errors - Fix problem re parsing for python 2.6."
    
    This reverts commit 0c669f87fa8f4bce6596bad043b8ab297ab484a8.

diff --git a/master-bin/detect_well_known_errors.py b/master-bin/detect_well_known_errors.py
index 1d0f213..acf631a 100755
--- a/master-bin/detect_well_known_errors.py
+++ b/master-bin/detect_well_known_errors.py
@@ -142,13 +142,11 @@ class Problem():
         probbody = pb.read()
         pb.close()
 
-        re_obj = re.compile( "^([A-Z]+=)", re.MULTILINE )
-        tagged = re.sub( re_obj, "<hdr>\g<0>", probbody, 0 )
+        tagged = re.sub( "^([A-Z]+=)", "<hdr>\g<0>", probbody, 0, re.MULTILINE)
 
         for chub in re.split( '<hdr>', tagged )[1:]:
 
-            re_obj = re.compile( "=", re.MULTILINE )
-            (name,value) = re.split( re_obj, chub, 1 )
+            (name,value) = re.split( "=", chub, 1, re.MULTILINE )
 
             while value[-1] == '\n':
                 value = value[:-1]

-- 
piuparts git repository



More information about the Piuparts-commits mailing list