Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improved docstrings for new functions
  • Loading branch information
sharktide authored Apr 12, 2026
commit 83500431ba01108e23eec1d6c449eeee21b152fe
8 changes: 6 additions & 2 deletions Lib/tkinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,18 @@
_space_re = None

def _get_magic_re():
"""Internal function."""
"""
Internal function that acts as a wrapper for the re import to make it lazy
"""
global _magic_re
if _magic_re is None:
_magic_re = re.compile(r'([\\{}])')
return _magic_re

def _get_space_re():
"""Internal function."""
"""
Internal function that acts as a wrapper for the re import to make it lazy
"""
global _space_re
if _space_re is None:
_space_re = re.compile(r'([\s])', re.ASCII)
Expand Down
Loading