[Reproducible-commits] [misc] 01/02: fix edit-notes

Chris West faux-guest at moszumanska.debian.org
Sat May 2 13:17:50 UTC 2015


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

faux-guest pushed a commit to branch master
in repository misc.

commit b3f937def773ff612ab6956a805ce0144f6f8dd0
Author: Chris West (Faux) <git at goeswhere.com>
Date:   Sat Apr 4 11:23:42 2015 +0100

    fix edit-notes
---
 clean-notes | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/clean-notes b/clean-notes
index c09c8f3..e153b56 100755
--- a/clean-notes
+++ b/clean-notes
@@ -129,8 +129,9 @@ def compose_mapping_node(self, anchor):
     node.end_mark = end_event.end_mark
     return node
 
-if not args.ignore_duplicates:
-    yaml.composer.Composer.compose_mapping_node = compose_mapping_node
+if __name__ == '__main__':
+    if not args.ignore_duplicates:
+        yaml.composer.Composer.compose_mapping_node = compose_mapping_node
 
 def error(*objs):
     print("ERROR: ", *objs, file=sys.stderr)

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