Commits

leliel12  committed 59bd8c8

python3 capable

  • Participants
  • Parent commits fd763cf

Comments (0)

Files changed (1)

 @parser.callback(exit=0, exclusive="group1")
 def first(flags, returns):
     '''Execute this option and exit'''
-    print "bye bye"
+    print("bye bye")
 
 @parser.callback(action="store")
 def second(flags, returns):
 @parser.callback("--third", exclusive="group1")
 def no_used_name(flags, returns):
     '''you cant use this argument with first'''
-    print returns.second
+    print(returns.second)
 
 import sys
 parser(sys.argv[1:])