@@ -17,9 +17,8 @@ msgstr ""
17
17
"Generated-By : Babel 2.17.0\n "
18
18
19
19
#: ../../library/shlex.rst:2
20
- #, fuzzy
21
20
msgid ":mod:`!shlex` --- Simple lexical analysis"
22
- msgstr ":mod:`shlex` --- 간단한 어휘 분석"
21
+ msgstr ":mod:`! shlex` --- 간단한 어휘 분석"
23
22
24
23
#: ../../library/shlex.rst:12
25
24
msgid "**Source code:** :source:`Lib/shlex.py`"
@@ -55,11 +54,10 @@ msgstr ""
55
54
"작동하지만, *posix* 인자가 거짓이면 비 POSIX 모드를 사용합니다."
56
55
57
56
#: ../../library/shlex.rst:33
58
- #, fuzzy
59
57
msgid ""
60
58
"Passing ``None`` for *s* argument now raises an exception, rather than "
61
59
"reading :data:`sys.stdin`."
62
- msgstr "*s*\\ 에 ``None``\\ 을 전달하면 향후 파이썬 버전에서 예외가 발생할 것입니다 ."
60
+ msgstr "*s* 인자에 ``None``\\ 을 전달하면 이제 :data:`sys.stdin` \\ 을 읽는 대신 예외를 일으킵니다 ."
63
61
64
62
#: ../../library/shlex.rst:39
65
63
msgid ""
@@ -607,6 +605,19 @@ msgid ""
607
605
"';',\n"
608
606
"'(', 'def', 'ghi', ')']"
609
607
msgstr ""
608
+ ">>> import shlex\n"
609
+ ">>> text = \" a && b; c && d || e; f >'abc'; (def \\\" ghi\\\" )\" \n"
610
+ ">>> s = shlex.shlex(text, posix=True)\n"
611
+ ">>> s.whitespace_split = True\n"
612
+ ">>> list(s)\n"
613
+ "['a', '&&', 'b;', 'c', '&&', 'd', '||', 'e;', 'f', '>abc;', '(def', "
614
+ "'ghi)']\n"
615
+ ">>> s = shlex.shlex(text, posix=True, punctuation_chars=True)\n"
616
+ ">>> s.whitespace_split = True\n"
617
+ ">>> list(s)\n"
618
+ "['a', '&&', 'b', ';', 'c', '&&', 'd', '||', 'e', ';', 'f', '>', 'abc', "
619
+ "';',\n"
620
+ "'(', 'def', 'ghi', ')']"
610
621
611
622
#: ../../library/shlex.rst:427
612
623
msgid ""
@@ -630,6 +641,10 @@ msgid ""
630
641
">>> list(s)\n"
631
642
"['a', '&', '&', 'b', '||', 'c']"
632
643
msgstr ""
644
+ ">>> import shlex\n"
645
+ ">>> s = shlex.shlex(\" a && b || c\" , punctuation_chars=\" |\" )\n"
646
+ ">>> list(s)\n"
647
+ "['a', '&', '&', 'b', '||', 'c']"
633
648
634
649
#: ../../library/shlex.rst:439
635
650
msgid ""
@@ -650,6 +665,11 @@ msgid ""
650
665
">>> list(s)\n"
651
666
"['~/a', '&&', 'b-c', '--color=auto', '||', 'd', '*.py?']"
652
667
msgstr ""
668
+ ">>> import shlex\n"
669
+ ">>> s = shlex.shlex('~/a && b-c --color=auto || d *.py?',\n"
670
+ "... punctuation_chars=True)\n"
671
+ ">>> list(s)\n"
672
+ "['~/a', '&&', 'b-c', '--color=auto', '||', 'd', '*.py?']"
653
673
654
674
#: ../../library/shlex.rst:450
655
675
msgid ""
0 commit comments