blind 2to3
[plcapi.git] / PLC / Methods / DeletePCUProtocolType.py
index b4c0ac7..d05daa0 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -10,7 +8,7 @@ class DeletePCUProtocolType(Method):
     """
     Deletes a PCU protocol type.
 
-    Returns 1 if successful, faults otherwise. 
+    Returns 1 if successful, faults otherwise.
     """
 
     roles = ['admin']
@@ -21,15 +19,15 @@ class DeletePCUProtocolType(Method):
         ]
 
     returns = Parameter(int, '1 if successful')
-    
+
 
     def call(self, auth, protocol_type_id):
         protocol_types = PCUProtocolTypes(self.api, [protocol_type_id])
         if not protocol_types:
-            raise PLCInvalidArgument, "No such pcu protocol type"
+            raise PLCInvalidArgument("No such pcu protocol type")
 
         protocol_type = protocol_types[0]
         protocol_type.delete()
-       self.event_objects = {'PCUProtocolType': [protocol_type['pcu_protocol_type_id']]}
+        self.event_objects = {'PCUProtocolType': [protocol_type['pcu_protocol_type_id']]}
 
         return 1