Skip to content

Commit 6868773

Browse files
committed
Deploying to gh-pages from @ 56d000b 🚀
1 parent 630d981 commit 6868773

File tree

527 files changed

+554
-554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

527 files changed

+554
-554
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 3171ec733aebb939b0562ca15f80c542
3+
config: 10c1337894e9662d2aedd76ccafb7e2f
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/library/shlex.rst.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -412,17 +412,17 @@ otherwise. To illustrate, you can see the difference in the following snippet:
412412
.. doctest::
413413
:options: +NORMALIZE_WHITESPACE
414414

415-
>>> import shlex
416-
>>> text = "a && b; c && d || e; f >'abc'; (def \"ghi\")"
417-
>>> s = shlex.shlex(text, posix=True)
418-
>>> s.whitespace_split = True
419-
>>> list(s)
420-
['a', '&&', 'b;', 'c', '&&', 'd', '||', 'e;', 'f', '>abc;', '(def', 'ghi)']
421-
>>> s = shlex.shlex(text, posix=True, punctuation_chars=True)
422-
>>> s.whitespace_split = True
423-
>>> list(s)
424-
['a', '&&', 'b', ';', 'c', '&&', 'd', '||', 'e', ';', 'f', '>', 'abc', ';',
425-
'(', 'def', 'ghi', ')']
415+
>>> import shlex
416+
>>> text = "a && b; c && d || e; f >'abc'; (def \"ghi\")"
417+
>>> s = shlex.shlex(text, posix=True)
418+
>>> s.whitespace_split = True
419+
>>> list(s)
420+
['a', '&&', 'b;', 'c', '&&', 'd', '||', 'e;', 'f', '>abc;', '(def', 'ghi)']
421+
>>> s = shlex.shlex(text, posix=True, punctuation_chars=True)
422+
>>> s.whitespace_split = True
423+
>>> list(s)
424+
['a', '&&', 'b', ';', 'c', '&&', 'd', '||', 'e', ';', 'f', '>', 'abc', ';',
425+
'(', 'def', 'ghi', ')']
426426

427427
Of course, tokens will be returned which are not valid for shells, and you'll
428428
need to implement your own error checks on the returned tokens.
@@ -431,10 +431,10 @@ Instead of passing ``True`` as the value for the punctuation_chars parameter,
431431
you can pass a string with specific characters, which will be used to determine
432432
which characters constitute punctuation. For example::
433433

434-
>>> import shlex
435-
>>> s = shlex.shlex("a && b || c", punctuation_chars="|")
436-
>>> list(s)
437-
['a', '&', '&', 'b', '||', 'c']
434+
>>> import shlex
435+
>>> s = shlex.shlex("a && b || c", punctuation_chars="|")
436+
>>> list(s)
437+
['a', '&', '&', 'b', '||', 'c']
438438

439439
.. note:: When ``punctuation_chars`` is specified, the :attr:`~shlex.wordchars`
440440
attribute is augmented with the characters ``~-./*?=``. That is because these

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ <h3>瀏覽</h3>
316316
<a href="https://www.python.org/psf/donations/">Please donate.</a>
317317
<br />
318318
<br />
319-
最後更新於 Apr 13, 2024 (08:26 UTC)。
319+
最後更新於 Apr 13, 2024 (17:32 UTC)。
320320

321321
<a href="/bugs.html">Found a bug</a>?
322322

bugs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
224224
</section>
225225
<section id="getting-started-contributing-to-python-yourself">
226226
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="Link to this heading"></a></h2>
227-
<p>除了只是回報您所發現的錯誤之外,同樣也歡迎您提交修正它們的修補程式 (patch)。您可以在 <a class="reference external" href="https://devguide.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果您有任何問題,<a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">核心導師郵寄清單</a>是一個友善的地方,您可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
227+
<p>除了只是回報您所發現的錯誤之外,同樣也歡迎您提交修正它們的修補程式 (patch)。您可以在 <a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果您有任何問題,<a class="reference external" href="https://devguide.python.org/">核心導師郵寄清單</a>是一個友善的地方,您可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
228228
</section>
229229
</section>
230230

@@ -352,7 +352,7 @@ <h3>瀏覽</h3>
352352
<a href="https://www.python.org/psf/donations/">Please donate.</a>
353353
<br />
354354
<br />
355-
最後更新於 Apr 13, 2024 (08:26 UTC)。
355+
最後更新於 Apr 13, 2024 (17:32 UTC)。
356356

357357
<a href="/bugs.html">Found a bug</a>?
358358

c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ <h3>瀏覽</h3>
326326
<a href="https://www.python.org/psf/donations/">Please donate.</a>
327327
<br />
328328
<br />
329-
最後更新於 Apr 13, 2024 (08:26 UTC)。
329+
最後更新於 Apr 13, 2024 (17:32 UTC)。
330330

331331
<a href="/bugs.html">Found a bug</a>?
332332

c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h3>瀏覽</h3>
340340
<a href="https://www.python.org/psf/donations/">Please donate.</a>
341341
<br />
342342
<br />
343-
最後更新於 Apr 13, 2024 (08:26 UTC)。
343+
最後更新於 Apr 13, 2024 (17:32 UTC)。
344344

345345
<a href="/bugs.html">Found a bug</a>?
346346

c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ <h3>瀏覽</h3>
372372
<a href="https://www.python.org/psf/donations/">Please donate.</a>
373373
<br />
374374
<br />
375-
最後更新於 Apr 13, 2024 (08:26 UTC)。
375+
最後更新於 Apr 13, 2024 (17:32 UTC)。
376376

377377
<a href="/bugs.html">Found a bug</a>?
378378

c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ <h3>瀏覽</h3>
883883
<a href="https://www.python.org/psf/donations/">Please donate.</a>
884884
<br />
885885
<br />
886-
最後更新於 Apr 13, 2024 (08:26 UTC)。
886+
最後更新於 Apr 13, 2024 (17:32 UTC)。
887887

888888
<a href="/bugs.html">Found a bug</a>?
889889

c-api/bool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ <h3>瀏覽</h3>
337337
<a href="https://www.python.org/psf/donations/">Please donate.</a>
338338
<br />
339339
<br />
340-
最後更新於 Apr 13, 2024 (08:26 UTC)。
340+
最後更新於 Apr 13, 2024 (17:32 UTC)。
341341

342342
<a href="/bugs.html">Found a bug</a>?
343343

c-api/buffer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ <h3>瀏覽</h3>
10101010
<a href="https://www.python.org/psf/donations/">Please donate.</a>
10111011
<br />
10121012
<br />
1013-
最後更新於 Apr 13, 2024 (08:26 UTC)。
1013+
最後更新於 Apr 13, 2024 (17:32 UTC)。
10141014

10151015
<a href="/bugs.html">Found a bug</a>?
10161016

0 commit comments

Comments
 (0)