cosmetic changes in sendmail.py - please the linter
[plcapi.git] / PLC / NetworkMethods.py
index ff31fe2..3efd388 100644 (file)
@@ -4,9 +4,6 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id$
-# $URL$
-#
 
 from PLC.Faults import *
 from PLC.Parameter import Parameter
@@ -28,12 +25,12 @@ class NetworkMethod(Row):
     def validate_method(self, name):
         # Make sure name is not blank
         if not len(name):
-            raise PLCInvalidArgument, "Network method must be specified"
+            raise PLCInvalidArgument("Network method must be specified")
 
         # Make sure network method does not alredy exist
         conflicts = NetworkMethods(self.api, [name])
         if conflicts:
-            raise PLCInvalidArgument, "Network method name already in use"
+            raise PLCInvalidArgument("Network method name already in use")
 
         return name