Commits

S. Joshua Swamidass committed ad5236b

fixed error in writing files to config

  • Participants
  • Parent commits 0ddfc65

Comments (0)

Files changed (1)

File confargparse.py

             if type(f) == file:
                 if f.name == "<stdin>": self.s = "sys.stdin"
                 elif f.name == "<stdout>": self.s = "sys.stdout"
-                else: self.s = "file(%s,'%s')" % (f.name, f.mode)
+                else: self.s = "file('%s','%s')" % (f.name, f.mode)
             else: self.s = repr(f)
         def __repr__(self): return self.s