MCPcopy Index your code
hub / github.com/python/cpython / _init_regex

Function _init_regex

Tools/c-analyzer/distutils/util.py:107–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105# Needed by 'split_quoted()'
106_wordchars_re = _squote_re = _dquote_re = None
107def _init_regex():
108 global _wordchars_re, _squote_re, _dquote_re
109 _wordchars_re = re.compile(r'[^\\\'\"%s ]*' % string.whitespace)
110 _squote_re = re.compile(r"'(?:[^'\\]|\\.)*'")
111 _dquote_re = re.compile(r'"(?:[^"\\]|\\.)*"')
112
113def split_quoted (s):
114 """Split a string up according to Unix shell-like rules for quotes and

Callers 1

split_quotedFunction · 0.85

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…