From 9a014d265b4e134fb5cea12aaca88ba5eb91cc05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 2 Jun 2014 02:37:11 +0200 Subject: [PATCH] Remove last instances of pep8 error E602 (old style exceptions). Signed-Off-By: Jelmer Vernooij Reviewed-by: Andrew Bartlett Change-Id: If709757643e6eed8cffa8950170c337f51edb9d9 --- python/samba/kcc_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/samba/kcc_utils.py b/python/samba/kcc_utils.py index ad0f4e54700..9c6b76251b6 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)