Changeset 391 for python/trunk/Lib/xml/etree/ElementInclude.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/xml/etree/ElementInclude.py
r2 r391 1 1 # 2 2 # ElementTree 3 # $Id: ElementInclude.py 1862 2004-06-18 07:31:02Z Fredrik $3 # $Id: ElementInclude.py 3375 2008-02-13 08:05:08Z fredrik $ 4 4 # 5 5 # limited xinclude support for element trees … … 17 17 # The ElementTree toolkit is 18 18 # 19 # Copyright (c) 1999-200 4by Fredrik Lundh19 # Copyright (c) 1999-2008 by Fredrik Lundh 20 20 # 21 21 # By obtaining, using, and/or copying this software and/or its … … 43 43 44 44 # Licensed to PSF under a Contributor Agreement. 45 # See http://www.python.org/ 2.4/license for licensing details.45 # See http://www.python.org/psf/license for licensing details. 46 46 47 47 ## … … 50 50 51 51 import copy 52 import ElementTree52 from . import ElementTree 53 53 54 54 XINCLUDE = "{http://www.w3.org/2001/XInclude}" … … 126 126 if i: 127 127 node = elem[i-1] 128 node.tail = (node.tail or "") + text 128 node.tail = (node.tail or "") + text + (e.tail or "") 129 129 else: 130 130 elem.text = (elem.text or "") + text + (e.tail or "")
Note:
See TracChangeset
for help on using the changeset viewer.