Source

rope_py3k / rope / base / resources.py

Diff from to

rope/base/resources.py

         data = self.read_bytes()
         try:
             return rope.base.fscommands.file_data_to_unicode(data)
-        except UnicodeDecodeError, e:
+        except UnicodeDecodeError as e:
             raise exceptions.ModuleDecodeError(self.path, e.reason)
 
     def read_bytes(self):