1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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
This commit is contained in:
Jelmer Vernooij 2014-06-02 02:37:11 +02:00 committed by Andrew Bartlett
parent bd6faaf56a
commit 9a014d265b

View 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)