diff -u --recursive genshi.old/core.py genshi/core.py
|
old
|
new
|
|
| 16 | 16 | from itertools import chain |
| 17 | 17 | import operator |
| 18 | 18 | |
| | 19 | try: |
| | 20 | from functools import reduce |
| | 21 | except ImportError: |
| | 22 | pass # builtin in Python <= 2.5 |
| | 23 | |
| 19 | 24 | from genshi.util import plaintext, stripentities, striptags |
| 20 | 25 | |
| 21 | 26 | __all__ = ['Stream', 'Markup', 'escape', 'unescape', 'Attrs', 'Namespace', |
diff -u --recursive genshi.old/path.py genshi/path.py
|
old
|
new
|
|
| 42 | 42 | import operator |
| 43 | 43 | import re |
| 44 | 44 | |
| | 45 | try: |
| | 46 | from functools import reduce |
| | 47 | except ImportError: |
| | 48 | pass # builtin in Python <= 2.5 |
| | 49 | |
| 45 | 50 | from genshi.core import Stream, Attrs, Namespace, QName |
| 46 | 51 | from genshi.core import START, END, TEXT, START_NS, END_NS, COMMENT, PI, \ |
| 47 | 52 | START_CDATA, END_CDATA |