[Reproducible-commits] [misc] 01/02: If __name__ != '__main__', then we don't have args

Chris Lamb lamby at moszumanska.debian.org
Mon Apr 27 08:39:40 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 63d7db81a1b891bf45011cf1554bcf958f4ccdf6
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Apr 27 09:38:16 2015 +0100

    If __name__ != '__main__', then we don't have args
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 clean-notes | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clean-notes b/clean-notes
index d7d6cd8..c09c8f3 100755
--- a/clean-notes
+++ b/clean-notes
@@ -48,6 +48,10 @@ parser.add_argument("--ignore-duplicates", action="store_true",
 parser.add_argument("-v", "--verbose", action="store_true")
 parser.add_argument("-n", "--dry-run", action="store_true")
 
+args = type('DefaultArgs', (object,), {
+    'ignore_duplicates': False,
+})
+
 if __name__ == '__main__':
     args = parser.parse_args()
 

-- 
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