Permalink
Browse files

no mutable default parameter

  • Loading branch information...
1 parent aecee99 commit bb77d888931a57dfd545e48781024155b97511cf @weisslj committed Nov 21, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 dir_edit
View
@@ -292,9 +292,12 @@ def decompose_mapping(graph):
return paths, cycles
-def main(argv=sys.argv):
+def main(argv=None):
'''Main function.'''
+ if not argv:
+ argv = sys.argv
+
global prog_name
global simulate
global verbose

0 comments on commit bb77d88

Please sign in to comment.