OSDN Git Service

pmd default argument bug fix
authorousttrue <ousttrue@gmail.com>
Wed, 12 Oct 2011 16:49:31 +0000 (01:49 +0900)
committerousttrue <ousttrue@gmail.com>
Wed, 12 Oct 2011 16:49:31 +0000 (01:49 +0900)
pymeshio/pmd/__init__.py

index 86f92be..afba0ce 100644 (file)
@@ -244,7 +244,8 @@ class Bone(object):
     def hasChild(self):
         return self.tail_index!=0
 
-    def display(self, indent=[]):
+    def display(self, indent=None):
+        indent=indent or []
         if len(indent)>0:
             prefix=''
             for i, is_end in enumerate(indent):