diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-06 17:20:39 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-06 17:20:39 (GMT) |
commit | 403bb39d1d964d7d75965649d2e8ffa1f9097b48 (patch) | |
tree | 1c01fba628cbecb443e0ca86f3c47d2c9b3a1174 /Tools/scripts/parseentities.py | |
parent | dcb89f4f09c9d0d2fcca412db726f43a0268efce (diff) | |
parent | d3af6344ef43df20c91be8275a5e874dc0589830 (diff) | |
download | cpython-403bb39d1d964d7d75965649d2e8ffa1f9097b48.zip cpython-403bb39d1d964d7d75965649d2e8ffa1f9097b48.tar.gz cpython-403bb39d1d964d7d75965649d2e8ffa1f9097b48.tar.bz2 |
merge heads
Diffstat (limited to 'Tools/scripts/parseentities.py')
-rwxr-xr-x | Tools/scripts/parseentities.py | 3 |
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') |