PEP8: fix W602: deprecated form of raising exception
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 30 Jul 2018 04:11:40 +0000 (16:11 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 24 Aug 2018 05:49:25 +0000 (07:49 +0200)
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/lib/wmi/wmi.py

index 4bc59cfe41a958544fe096af82eb2b3e05af00a3..ff7170eb586c4a0f9b537e91fb69e1c9f3be0a2f 100644 (file)
@@ -30,7 +30,7 @@ def _swig_getattr(self,class_type,name):
     if (name == "thisown"): return self.this.own()
     method = class_type.__swig_getmethods__.get(name,None)
     if method: return method(self)
-    raise AttributeError,name
+    raise AttributeError(name)
 
 def _swig_repr(self):
     try: strthis = "proxy of " + self.this.__repr__()