Преглед на файлове

Merge pull request #3511 from cclauss/patch-3

Old style exception --> new style exception
Jie Luo преди 8 години
родител
ревизия
5ab8ae7566
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)