Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/xml/etree/ElementInclude.py

    r2 r391  
    11#
    22# 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 $
    44#
    55# limited xinclude support for element trees
     
    1717# The ElementTree toolkit is
    1818#
    19 # Copyright (c) 1999-2004 by Fredrik Lundh
     19# Copyright (c) 1999-2008 by Fredrik Lundh
    2020#
    2121# By obtaining, using, and/or copying this software and/or its
     
    4343
    4444# 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.
    4646
    4747##
     
    5050
    5151import copy
    52 import ElementTree
     52from . import ElementTree
    5353
    5454XINCLUDE = "{http://www.w3.org/2001/XInclude}"
     
    126126                if i:
    127127                    node = elem[i-1]
    128                     node.tail = (node.tail or "") + text
     128                    node.tail = (node.tail or "") + text + (e.tail or "")
    129129                else:
    130130                    elem.text = (elem.text or "") + text + (e.tail or "")
Note: See TracChangeset for help on using the changeset viewer.