diff hgext/convert/subversion.py @ 16687:e34106fa0dc3

cleanup: "raise SomeException()" -> "raise SomeException"
author Brodie Rao <brodie@sf.io>
date Sat, 12 May 2012 16:00:58 +0200
parents 525fdb738975
children cfb6682961b8
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Sat May 12 16:00:57 2012 +0200
+++ b/hgext/convert/subversion.py	Sat May 12 16:00:58 2012 +0200
@@ -870,7 +870,7 @@
     def getfile(self, file, rev):
         # TODO: ra.get_file transmits the whole file instead of diffs.
         if file in self.removed:
-            raise IOError()
+            raise IOError
         mode = ''
         try:
             new_module, revnum = revsplit(rev)[1:]
@@ -891,7 +891,7 @@
             notfound = (svn.core.SVN_ERR_FS_NOT_FOUND,
                 svn.core.SVN_ERR_RA_DAV_PATH_NOT_FOUND)
             if e.apr_err in notfound: # File not found
-                raise IOError()
+                raise IOError
             raise
         if mode == 'l':
             link_prefix = "link "