Explorar el Código

Old style exception --> new style exception

cclauss hace 8 años
padre
commit
958412e2e6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      python/mox.py

+ 1 - 1
python/mox.py

@@ -778,7 +778,7 @@ class Comparator:
       rhs: any python object
     """
 
-    raise NotImplementedError, 'method must be implemented by a subclass.'
+    raise NotImplementedError('method must be implemented by a subclass.')
 
   def __eq__(self, rhs):
     return self.equals(rhs)