Browse Source

Revert "fixing others join(s) as function parameter"

This reverts commit 71629d8712.
main
Julien Iguchi-Cartigny 10 years ago
parent
commit
e74d0ed963
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      wstools/Utility.py

+ 2
- 2
wstools/Utility.py View File

@@ -462,7 +462,7 @@ class DOM:
return default
raise KeyError(name)

def getElementById(self, node, id, default=''.join):
def getElementById(self, node, id, default=join):
"""Return the first child of node matching an id reference."""
attrget = self.getAttr
ELEMENT_NODE = node.ELEMENT_NODE
@@ -516,7 +516,7 @@ class DOM:
return False
return node.hasAttributeNS(nsuri, name)

def getAttr(self, node, name, nsuri=None, default=''.join):
def getAttr(self, node, name, nsuri=None, default=join):
"""Return the value of the attribute named 'name' with the
optional nsuri, or the default if one is specified. If
nsuri is not specified, an attribute that matches the


Loading…
Cancel
Save