[Reproducible-commits] [misc] 02/02: Prefer "X not in Y" over "not X in Y"

Chris Lamb lamby at moszumanska.debian.org
Tue Jul 7 07:48:29 UTC 2015


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

lamby pushed a commit to branch master
in repository misc.

commit 28f94f15a5112e1420053cabebeeee2536826dc7
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jul 7 08:47:33 2015 +0100

    Prefer "X not in Y" over "not X in Y"
---
 edit-notes | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/edit-notes b/edit-notes
index c2cf563..6b433b8 100755
--- a/edit-notes
+++ b/edit-notes
@@ -24,7 +24,7 @@ if __name__ == '__main__':
     testedpkgs = clean.load_reproducible_status()
     notes = clean.load_notes()
     for add in args.add_note:
-        if not add in issues.keys():
+        if add not in issues.keys():
             raise ValueError('%r is not a valid issue' % add)
 
     if args.fix_deterministic:
@@ -53,9 +53,9 @@ if __name__ == '__main__':
                     package_issues.remove(fix)
 
         for add in args.add_note:
-            if not 'issues' in data:
+            if 'issues' not in data:
                 data['issues'] = []
-            if not add in data['issues']:
+            if add not in data['issues']:
                 data['issues'].append(add)
 
         for x in args.add_bug:

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



More information about the Reproducible-commits mailing list