Procházet zdrojové kódy

Old style exception --> new style exception

cclauss před 8 roky
rodič
revize
958412e2e6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      python/mox.py

+ 1 - 1
python/mox.py

@@ -778,7 +778,7 @@ class Comparator:
       rhs: any python object
       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):
   def __eq__(self, rhs):
     return self.equals(rhs)
     return self.equals(rhs)