libxml2dom/__init__.py | raw changeset files shortlog |
1.1 --- a/libxml2dom/__init__.py Sun May 15 19:26:04 2005 +0000 1.2 +++ b/libxml2dom/__init__.py Sun May 15 19:49:17 2005 +0000 1.3 @@ -235,7 +235,7 @@ 1.4 1.5 def xpath(self, expr, variables=None, namespaces=None): 1.6 result = Node_xpath(self._node, expr, variables, namespaces) 1.7 - if hasattr(result, "len"): 1.8 + if hasattr(result, "__len__"): 1.9 return [Node(_node, self.ownerDocument) for _node in result] 1.10 else: 1.11 return result