Przeglądaj źródła

Merge pull request #3511 from cclauss/patch-3

Old style exception --> new style exception
Jie Luo 8 lat temu
rodzic
commit
5ab8ae7566
1 zmienionych plików z 1 dodań i 1 usunięć
  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)