it is dangerous to set defaults to mutable objects like [] or {}
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 10:43:49 +0000 (12:43 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 10:43:49 +0000 (12:43 +0200)
plus, we don't actually use this

sfa/client/sfaadmin.py

index 2ddf609..cf88a3a 100755 (executable)
@@ -81,9 +81,9 @@ class RegistryCommands(Commands):
             save_records_to_file(outfile, records)  
 
 
-    def _record_dict(self, xrn=None, type=None, email='', key=None
-                     slices=[], researchers=[], pis=[]
-                     url=None, description=None, extras={}):
+    def _record_dict(self, xrn, type, email, key
+                     slices, researchers, pis
+                     url, description, extras):
         record_dict = {}
         if xrn:
             if type: