[diffoscope] 02/03: comparators.apk: Use single quotes for "computer-readable" text.

Chris Lamb chris at chris-lamb.co.uk
Mon Jan 9 12:32:30 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 821722e2164b6c4201a42c8eb187f7b6ff70e602
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Jan 9 11:30:07 2017 +0000

    comparators.apk: Use single quotes for "computer-readable" text.
    
    Dch-Gbp: Ignore
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/apk.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/diffoscope/comparators/apk.py b/diffoscope/comparators/apk.py
index 30e167e..109bdee 100644
--- a/diffoscope/comparators/apk.py
+++ b/diffoscope/comparators/apk.py
@@ -57,7 +57,7 @@ class ApkContainer(Archive):
                 abspath = os.path.join(root, f)
                 # apktool.yml is a file created by apktool and containing metadata information.
                 # Rename it to clarify.
-                if os.path.basename(abspath) == "apktool.yml":
+                if os.path.basename(abspath) == 'apktool.yml':
                     abspath = filter_apk_metadata(abspath, os.path.basename(self.source.name))
                 relpath = abspath[len(self._unpacked)+1:]
                 self._members.append(relpath)
@@ -91,7 +91,7 @@ class ApkFile(File):
 
 
 def filter_apk_metadata(filepath, archive_name):
-    new_filename = os.path.join(os.path.dirname(filepath), "APK metadata")
+    new_filename = os.path.join(os.path.dirname(filepath), 'APK metadata')
     logger.debug("Moving APK metadata from %s to %s", filepath, new_filename)
 
     re_filename = re.compile(
@@ -99,7 +99,7 @@ def filter_apk_metadata(filepath, archive_name):
     )
 
     with open(filepath) as f:
-        with open(new_filename, "w") as f_out:
+        with open(new_filename, 'w') as f_out:
             for line in f:
                 if not re_filename.match(line):
                     f_out.write(line)

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


More information about the diffoscope mailing list