Selaa lähdekoodia

Old style exception --> new style exception

cclauss 8 vuotta sitten
vanhempi
commit
958412e2e6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)