summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/parseentities.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-06 17:20:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-04-06 17:20:39 (GMT)
commit403bb39d1d964d7d75965649d2e8ffa1f9097b48 (patch)
tree1c01fba628cbecb443e0ca86f3c47d2c9b3a1174 /Tools/scripts/parseentities.py
parentdcb89f4f09c9d0d2fcca412db726f43a0268efce (diff)
parentd3af6344ef43df20c91be8275a5e874dc0589830 (diff)
downloadcpython-403bb39d1d964d7d75965649d2e8ffa1f9097b48.zip
cpython-403bb39d1d964d7d75965649d2e8ffa1f9097b48.tar.gz
cpython-403bb39d1d964d7d75965649d2e8ffa1f9097b48.tar.bz2
merge heads
Diffstat (limited to 'Tools/scripts/parseentities.py')
-rwxr-xr-xTools/scripts/parseentities.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/scripts/parseentities.py b/Tools/scripts/parseentities.py
index 5b0f1c6..a042d1c 100755
--- a/Tools/scripts/parseentities.py
+++ b/Tools/scripts/parseentities.py
@@ -13,7 +13,6 @@
"""
import re,sys
-import TextTools
entityRE = re.compile('<!ENTITY +(\w+) +CDATA +"([^"]+)" +-- +((?:.|\n)+?) *-->')
@@ -45,7 +44,7 @@ def writefile(f,defs):
charcode = repr(charcode)
else:
charcode = repr(charcode)
- comment = TextTools.collapse(comment)
+ comment = ' '.join(comment.split())
f.write(" '%s':\t%s, \t# %s\n" % (name,charcode,comment))
f.write('\n}\n')