libxml2macro.py | raw changeset files shortlog |
1.1 --- a/libxml2macro.py Sun May 15 19:26:04 2005 +0000 1.2 +++ b/libxml2macro.py Sun May 15 19:49:17 2005 +0000 1.3 @@ -170,7 +170,7 @@ 1.4 ) 1.5 for key, value in parent.__dict__.items(): 1.6 # Detect lists. 1.7 - if hasattr(value, "len") and node in value: 1.8 + if hasattr(value, "__len__") and node in value: 1.9 index = value.index(node) 1.10 value[index] = replacement 1.11 elif value is node: