Remove last instances of pep8 error E602 (old style exceptions).
authorJelmer Vernooij <jelmer@samba.org>
Mon, 2 Jun 2014 00:37:11 +0000 (02:37 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Oct 2014 04:44:06 +0000 (06:44 +0200)
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Change-Id: If709757643e6eed8cffa8950170c337f51edb9d9

python/samba/kcc_utils.py

index ad0f4e547008166f3d1ea73aa7d249789c970363..9c6b76251b629277cbb7aa6906c7d49796dcb455 100644 (file)
@@ -1982,9 +1982,9 @@ class RepsFromTo(object):
             self.__dict__['to_be_deleted'] = value
 
         elif item in ['version']:
-            raise AttributeError, "Attempt to set readonly attribute %s" % item
+            raise AttributeError("Attempt to set readonly attribute %s" % item)
         else:
-            raise AttributeError, "Unknown attribute %s" % item
+            raise AttributeError("Unknown attribute %s" % item)
 
         self.__dict__['update_flags'] |= drsuapi.DRSUAPI_DRS_UPDATE_ADDRESS
 
@@ -2023,7 +2023,7 @@ class RepsFromTo(object):
         elif item in ['update_flags']:
             return self.__dict__['update_flags']
 
-        raise AttributeError, "Unknwown attribute %s" % item
+        raise AttributeError("Unknwown attribute %s" % item)
 
     def is_modified(self):
         return (self.update_flags != 0x0)