()
| 105 | # Needed by 'split_quoted()' |
| 106 | _wordchars_re = _squote_re = _dquote_re = None |
| 107 | def _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 | |
| 113 | def split_quoted (s): |
| 114 | """Split a string up according to Unix shell-like rules for quotes and |
no test coverage detected
searching dependent graphs…