summaryrefslogtreecommitdiffstats
path: root/python/samba/kcc_utils.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-06-02 02:37:11 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-10-14 06:44:06 +0200
commit9a014d265b4e134fb5cea12aaca88ba5eb91cc05 (patch)
tree61f92f9d726f790ff78c49024c0720c9b9294aeb /python/samba/kcc_utils.py
parentbd6faaf56a6237874cc84ddb8be0f09a9b742a54 (diff)
downloadsamba-9a014d265b4e134fb5cea12aaca88ba5eb91cc05.tar.gz
samba-9a014d265b4e134fb5cea12aaca88ba5eb91cc05.tar.xz
samba-9a014d265b4e134fb5cea12aaca88ba5eb91cc05.zip
Remove last instances of pep8 error E602 (old style exceptions).
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Change-Id: If709757643e6eed8cffa8950170c337f51edb9d9
Diffstat (limited to 'python/samba/kcc_utils.py')
-rw-r--r--python/samba/kcc_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/samba/kcc_utils.py b/python/samba/kcc_utils.py
index ad0f4e5470..9c6b76251b 100644
--- a/python/samba/kcc_utils.py
+++ b/python/samba/kcc_utils.py
@@ -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)