[MOBY-guts] biomoby commit
Yan Wong
yanwong at pub.open-bio.org
Tue Apr 26 15:10:00 UTC 2005
yanwong
Tue Apr 26 11:09:59 EDT 2005
Update of /home/repository/moby/moby-live/Python/bioMoby
In directory pub.open-bio.org:/tmp/cvs-serv899/bioMoby
Modified Files:
mobyDataTypes.py
Log Message:
Corrected a small bug in the mobyContent constructor
moby-live/Python/bioMoby mobyDataTypes.py,1.19,1.20
===================================================================
RCS file: /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py 2005/04/19 15:41:50 1.19
+++ /home/repository/moby/moby-live/Python/bioMoby/mobyDataTypes.py 2005/04/26 15:09:59 1.20
@@ -293,9 +293,12 @@
"""The class describes a Moby Content (for queries or answers)
"""
- def __init__(self, queryData={}, authority="", servicenotes=""):
+ def __init__(self, queryData=None, authority="", servicenotes=""):
"""Optional parameters indicate the authority's URL and notes about the service
"""
+ if not queryData:
+ queryData={}
+
self.authority=authority
self.servicenotes=servicenotes
More information about the MOBY-guts
mailing list