formatted the 'db' script using vscode
[plcapi.git] / PLC / Methods / DeleteNodeType.py
index c684502..679fdb9 100644 (file)
@@ -1,4 +1,3 @@
-# $Id$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -28,9 +27,9 @@ class DeleteNodeType(Method):
     def call(self, auth, name):
         node_types = NodeTypes(self.api, [name])
         if not node_types:
-            raise PLCInvalidArgument, "No such node type"
+            raise PLCInvalidArgument("No such node type")
         node_type = node_types[0]
 
         node_type.delete()
-       
+
         return 1