Skip to content

Commit 8350043

Browse files
authored
Improved docstrings for new functions
1 parent e9803f4 commit 8350043

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Lib/tkinter/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,18 @@
5353
_space_re = None
5454

5555
def _get_magic_re():
56-
"""Internal function."""
56+
"""
57+
Internal function that acts as a wrapper for the re import to make it lazy
58+
"""
5759
global _magic_re
5860
if _magic_re is None:
5961
_magic_re = re.compile(r'([\\{}])')
6062
return _magic_re
6163

6264
def _get_space_re():
63-
"""Internal function."""
65+
"""
66+
Internal function that acts as a wrapper for the re import to make it lazy
67+
"""
6468
global _space_re
6569
if _space_re is None:
6670
_space_re = re.compile(r'([\s])', re.ASCII)

0 commit comments

Comments
 (0)