1. S. Joshua Swamidass
  2. confargparse

Commits

S. Joshua Swamidass  committed ad5236b

fixed error in writing files to config

  • Participants
  • Parent commits 0ddfc65
  • Branches default

Comments (0)

Files changed (1)

File confargparse.py

View file
  • Ignore whitespace
             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