mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue