[diffoscope] 01/01: comparators.apk: Correct undefined "f_out" variable.

Chris Lamb chris at chris-lamb.co.uk
Mon Jan 9 17:31:22 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 973426a013851aa71a05653937678da56432339d
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Jan 9 16:30:42 2017 +0000

    comparators.apk: Correct undefined "f_out" variable.
    
    Dch-Gbp: Ignore
---
 diffoscope/comparators/apk.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/diffoscope/comparators/apk.py b/diffoscope/comparators/apk.py
index 7a12837..5a2663b 100644
--- a/diffoscope/comparators/apk.py
+++ b/diffoscope/comparators/apk.py
@@ -104,11 +104,11 @@ def filter_apk_metadata(filepath, archive_name):
         r'^apkFileName: %s' % re.escape(os.path.basename(archive_name)),
     )
 
-    with open(filepath) as f:
-        with open(new_filename, 'w') as f_out:
-            for line in f:
+    with open(filepath) as in_:
+        with open(new_filename, 'w') as out:
+            for line in in_:
                 if not re_filename.match(line):
-                    w.write(line)
+                    out.write(line)
 
     os.remove(filepath)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list