mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
normalize whitespace
This commit is contained in:
parent
e6a951b83e
commit
8687245e27
1 changed files with 0 additions and 4 deletions
|
|
@ -1382,12 +1382,10 @@ class TreeBuilder:
|
|||
self._last.text = text
|
||||
self._data = []
|
||||
|
||||
|
||||
def data(self, data):
|
||||
"""Add text to current element."""
|
||||
self._data.append(data)
|
||||
|
||||
|
||||
def start(self, tag, attrs):
|
||||
"""Open new element and return it.
|
||||
|
||||
|
|
@ -1403,7 +1401,6 @@ class TreeBuilder:
|
|||
self._tail = 0
|
||||
return elem
|
||||
|
||||
|
||||
def end(self, tag):
|
||||
"""Close and return current Element.
|
||||
|
||||
|
|
@ -1681,4 +1678,3 @@ try:
|
|||
source.close()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue