Sfoglia il codice sorgente

Old style exception --> new style exception

cclauss 8 anni fa
parent
commit
958412e2e6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)