Commits

Rhys !  committed c2dbae5

removed empty list as kwarg default

  • Participants
  • Parent commits 84c4511

Comments (0)

Files changed (1)

File opik/core.py

         self.addN((s[0], s[1], s[2], self) for s in graph)
 
 class RDFDoc(object):
-    def __init__(self, resources=[], uri=None, isPartOf=None):
+    def __init__(self, resources=None, uri=None, isPartOf=None):
         self.defined = {}
         self.nss = {}
         self.prefixes = {}
-        self.resources = resources
+        self.resources = resources if resources is not None else []
         self.uri = uri
         self.isPartOf = isPartOf
         super(RDFDoc, self).__init__()