Revision 1345
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xpath.py | ||
---|---|---|
6 | 6 |
from Parser import Parser |
7 | 7 |
import util |
8 | 8 |
import xml_dom |
9 |
import xpath_func |
|
10 | 9 |
|
11 | 10 |
##### Path elements |
12 | 11 |
|
... | ... | |
89 | 88 |
|
90 | 89 |
##### Parsing |
91 | 90 |
|
91 |
import xpath_func |
|
92 |
|
|
92 | 93 |
def expand_abbr(name, repl): |
93 | 94 |
before, abbr, after = name.partition('*') |
94 | 95 |
if abbr != '': name = before+repl+after |
Also available in: Unified diff
xpath.py: Import xpath_func after defining XpathElem because xpath_func depends on XpathElem and it hasn't yet been factored into a separate file