Home
last modified time | relevance | path

Searched refs:punctuation_chars (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/test/
Dtest_shlex.py193 s = shlex.shlex(ss, punctuation_chars=True)
209 s = shlex.shlex(ss, punctuation_chars=True)
225 s = shlex.shlex(ss, punctuation_chars=True)
237 s = shlex.shlex(ss, punctuation_chars=True)
247 s = shlex.shlex(ss, punctuation_chars="|")
251 s = shlex.shlex(ss, punctuation_chars="|")
263 s = shlex.shlex(source, punctuation_chars=True)
269 if t[0] in s.punctuation_chars:
278 s = shlex.shlex('a_b__c', punctuation_chars='_')
284 s = shlex.shlex('a && b || c', punctuation_chars='&')
[all …]
/third_party/python/Lib/
Dshlex.py22 punctuation_chars=False): argument
54 if not punctuation_chars:
55 punctuation_chars = ''
56 elif punctuation_chars is True:
57 punctuation_chars = '();<>|&'
58 self._punctuation_chars = punctuation_chars
59 if punctuation_chars:
65 t = self.wordchars.maketrans(dict.fromkeys(punctuation_chars))
69 def punctuation_chars(self): member in shlex
137 if self.punctuation_chars and self._pushback_chars:
[all …]
/third_party/python/Doc/library/
Dshlex.rst110 .. class:: shlex(instream=None, infile=None, posix=False, punctuation_chars=False)
124 parsing rules. The *punctuation_chars* argument provides a way to make the
132 *punctuation_chars* will be removed from :attr:`wordchars`. See
133 :ref:`improved-shell-compatibility` for more information. *punctuation_chars*
138 The *punctuation_chars* parameter was added.
243 :attr:`punctuation_chars` is not empty, the characters ``~-./*?=``, which can
246 ``punctuation_chars`` will be removed from ``wordchars`` if they are present
282 :attr:`punctuation_chars`, tokens will be split on whitespace in addition to
286 The :attr:`punctuation_chars` attribute was made compatible with the
337 .. attribute:: shlex.punctuation_chars
[all …]
/third_party/python/Doc/whatsnew/
D3.6.rst1383 through the new *punctuation_chars* argument to control which characters
/third_party/python/Misc/NEWS.d/
D3.9.0a1.rst3441 :attr:`shlex.shlex.punctuation_chars` is now a read-only property.