Commits

Anonymous committed 09ce808

fscommands: writing data to files in binary mode

Comments (0)

Files changed (1)

rope/base/fscommands.py

             shutil.rmtree(path)
 
     def write(self, path, data):
-        file_ = open(path, 'w')
+        file_ = open(path, 'wb')
         try:
             file_.write(data)
         finally: