We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9803f4 commit 8350043Copy full SHA for 8350043
1 file changed
Lib/tkinter/__init__.py
@@ -53,14 +53,18 @@
53
_space_re = None
54
55
def _get_magic_re():
56
- """Internal function."""
+ """
57
+ Internal function that acts as a wrapper for the re import to make it lazy
58
59
global _magic_re
60
if _magic_re is None:
61
_magic_re = re.compile(r'([\\{}])')
62
return _magic_re
63
64
def _get_space_re():
65
66
67
68
global _space_re
69
if _space_re is None:
70
_space_re = re.compile(r'([\s])', re.ASCII)
0 commit comments