mirror of https://github.com/python/cpython
Make the _rmtt regular expression deal with the new CSS-friendly
changes to the HTML documentation.
This commit is contained in:
parent
70a66c9d6d
commit
4cc902f464
|
@ -77,7 +77,8 @@ def split_entry(str, which):
|
|||
return stuff
|
||||
|
||||
|
||||
_rmtt = re.compile(r"(.*)<tt>(.*)</tt>(.*)$", re.IGNORECASE)
|
||||
_rmtt = re.compile(r"(.*)<tt(?: class=[a-z0-9]+)?>(.*)</tt>(.*)$",
|
||||
re.IGNORECASE)
|
||||
_rmparens = re.compile(r"\(\)")
|
||||
|
||||
def split_entry_key(str):
|
||||
|
|
Loading…
Reference in New Issue