Skip to content

Commit 3245a65

Browse files
Import re as _re.
1 parent 7e96492 commit 3245a65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/xml/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
lazy import re
1+
lazy import re as _re
22

33

44
def is_valid_name(name):
55
"""Test whether a string is a valid element or attribute name."""
66
# https://www.w3.org/TR/xml/#NT-Name
7-
return re.fullmatch(
7+
return _re.fullmatch(
88
# NameStartChar
99
'['
1010
':A-Z_a-z'

0 commit comments

Comments
 (0)