rename argument type to typeval to avoid using a built-in
authorMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 21 May 2009 01:42:33 +0000 (01:42 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 21 May 2009 01:42:33 +0000 (01:42 +0000)
PLC/Parameter.py

index fc25b93..f52c80f 100644 (file)
@@ -17,14 +17,14 @@ class Parameter:
     sub-parameters (i.e., dict fields).
     """
 
-    def __init__(self, type, doc = "",
+    def __init__(self, typeval, doc = "",
                  min = None, max = None,
                  optional = None,
                  ro = False,
                  nullok = False):
         # Basic type of the parameter. Must be a builtin type
         # that can be marshalled by XML-RPC.
-        self.type = type
+        self.type = typeval
 
         # Documentation string for the parameter
         self.doc = doc