/etc/plc.d/db dump-and-clean
[plcapi.git] / PLC / Methods / DeleteAddressType.py
index dae2858..66340f2 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -27,7 +25,7 @@ class DeleteAddressType(Method):
     def call(self, auth, address_type_id_or_name):
         address_types = AddressTypes(self.api, [address_type_id_or_name])
         if not address_types:
-            raise PLCInvalidArgument, "No such address type"
+            raise PLCInvalidArgument("No such address type")
         address_type = address_types[0]
         address_type.delete()
         self.event_objects = {'AddressType': [address_type['address_type_id']]}