summaryrefslogtreecommitdiff
path: root/lang/python/patches/patch-an
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/patches/patch-an')
-rw-r--r--lang/python/patches/patch-an19
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/python/patches/patch-an b/lang/python/patches/patch-an
new file mode 100644
index 00000000000..9ef1134d0a0
--- /dev/null
+++ b/lang/python/patches/patch-an
@@ -0,0 +1,19 @@
+--- Lib/sgmllib.py.orig Thu Mar 26 22:12:54 1998
++++ Lib/sgmllib.py Wed May 6 23:10:29 1998
+@@ -30,12 +30,12 @@
+ endbracket = re.compile('[<>]')
+ special = re.compile('<![^<>]*>')
+ commentopen = re.compile('<!--')
+-commentclose = re.compile('--[ \t\n]*>')
++commentclose = re.compile('--[%s]*>' % string.whitespace)
+ tagfind = re.compile('[a-zA-Z][a-zA-Z0-9]*')
+ attrfind = re.compile(
+- '[ \t\n]+([a-zA-Z_][-.a-zA-Z_0-9]*)'
+- '([ \t\n]*=[ \t\n]*'
+- r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:+*%?!\(\)_#=~]*))?')
++ '[ \t\n\r]+([a-zA-Z_][-.a-zA-Z_0-9]*)'
++ + ('([%s]*=[%s]*' % (string.whitespace, string.whitespace))
++ + r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:+*%?!\(\)_#=~]*))?')
+
+
+ # SGML parser base class -- find tags and call handler functions.