@@ -17,9 +17,8 @@ msgstr ""
17
17
"Generated-By : Babel 2.17.0\n "
18
18
19
19
#: ../../library/http.cookiejar.rst:2
20
- #, fuzzy
21
20
msgid ":mod:`!http.cookiejar` --- Cookie handling for HTTP clients"
22
- msgstr ":mod:`http.cookiejar` --- HTTP 클라이언트를 위한 쿠키 처리"
21
+ msgstr ":mod:`! http.cookiejar` --- HTTP 클라이언트를 위한 쿠키 처리"
23
22
24
23
#: ../../library/http.cookiejar.rst:10
25
24
msgid "**Source code:** :source:`Lib/http/cookiejar.py`"
@@ -38,7 +37,6 @@ msgstr ""
38
37
"-- 을 요구하는 웹 사이트에 액세스하는 데 유용합니다."
39
38
40
39
#: ../../library/http.cookiejar.rst:19
41
- #, fuzzy
42
40
msgid ""
43
41
"Both the regular Netscape cookie protocol and the protocol defined by "
44
42
":rfc:`2965` are handled. RFC 2965 handling is switched off by default. "
@@ -84,11 +82,12 @@ msgstr ""
84
82
":exc:`LoadError`\\ 는 :exc:`OSError`\\ 의 서브 클래스입니다."
85
83
86
84
#: ../../library/http.cookiejar.rst:46
87
- #, fuzzy
88
85
msgid ""
89
86
":exc:`LoadError` used to be a subtype of :exc:`IOError`, which is now an "
90
87
"alias of :exc:`OSError`."
91
- msgstr ":exc:`IOError`\\ 가 발생했었지만, 이제는 :exc:`OSError`\\ 의 별칭입니다."
88
+ msgstr ""
89
+ "이전에는 :exc:`LoadError`\\ 가 :exc:`IOError`\\ 의 서브 형이었습니다. 이제는 "
90
+ ":exc:`OSError`\\ 의 별칭입니다."
92
91
93
92
#: ../../library/http.cookiejar.rst:51
94
93
msgid "The following classes are provided:"
@@ -219,9 +218,8 @@ msgstr ""
219
218
":mod:`http.cookies` 모듈은 서로 의존하지 않습니다."
220
219
221
220
#: ../../library/http.cookiejar.rst:127
222
- #, fuzzy
223
221
msgid "https://curl.se/rfc/cookie_spec.html"
224
- msgstr "https://curl.haxx. se/rfc/cookie_spec.html"
222
+ msgstr "https://curl.se/rfc/cookie_spec.html"
225
223
226
224
#: ../../library/http.cookiejar.rst:128
227
225
msgid ""
@@ -256,9 +254,8 @@ msgstr ""
256
254
"Cookie2`\\ 를 사용합니다. 널리 사용되지 않습니다."
257
255
258
256
#: ../../library/http.cookiejar.rst:140
259
- #, fuzzy
260
257
msgid "https://kristol.org/cookie/errata.html"
261
- msgstr "http ://kristol.org/cookie/errata.html"
258
+ msgstr "https ://kristol.org/cookie/errata.html"
262
259
263
260
#: ../../library/http.cookiejar.rst:141
264
261
msgid "Unfinished errata to :rfc:`2965`."
@@ -300,7 +297,6 @@ msgstr ""
300
297
":mailheader:`Cookie2` 헤더도 적절한 경우 추가됩니다."
301
298
302
299
#: ../../library/http.cookiejar.rst:164
303
- #, fuzzy
304
300
msgid ""
305
301
"The *request* object (usually a :class:`urllib.request.Request` instance)"
306
302
" must support the methods :meth:`get_full_url`, :meth:`has_header`, "
@@ -309,10 +305,10 @@ msgid ""
309
305
" :attr:`origin_req_host` as documented by :mod:`urllib.request`."
310
306
msgstr ""
311
307
"*request* 객체(일반적으로 :class:`urllib.request.Request` 인스턴스)는 "
312
- ":mod:`urllib.request`\\ 가 설명하는 :meth:`get_full_url`, :meth:`get_host `, "
313
- ":meth:`get_type `, :meth:`unverifiable `, :meth:`has_header `, "
314
- ":meth:`get_header`, :meth:`header_items `, :meth:`add_unredirected_header` "
315
- " 및 :attr:`origin_req_host` 어트리뷰트를 지원해야 합니다."
308
+ ":mod:`urllib.request`\\ 에 설명되어 있듯이 :meth:`get_full_url `, "
309
+ ":meth:`has_header `, :meth:`get_header `, :meth:`header_items `, "
310
+ ":meth:`add_unredirected_header` 및 어트리뷰트 :attr:`host `, :attr:`!type`, "
311
+ ":attr:`unverifiable`, :attr:`origin_req_host`\\ 를 지원해야 합니다."
316
312
317
313
#: ../../library/http.cookiejar.rst:172 ../../library/http.cookiejar.rst:198
318
314
msgid ""
@@ -350,7 +346,6 @@ msgstr ""
350
346
":class:`email.message.Message` 인스턴스를 반환하는 :meth:`info` 메서드를 지원해야 합니다."
351
347
352
348
#: ../../library/http.cookiejar.rst:189
353
- #, fuzzy
354
349
msgid ""
355
350
"The *request* object (usually a :class:`urllib.request.Request` instance)"
356
351
" must support the method :meth:`get_full_url` and the attributes "
@@ -360,9 +355,9 @@ msgid ""
360
355
"allowed to be set."
361
356
msgstr ""
362
357
"*request* 객체(일반적으로 :class:`urllib.request.Request` 인스턴스)는 "
363
- ":mod:`urllib.request`\\ 가 설명하는 메서드 :meth:`get_full_url`, :meth:`get_host`, "
364
- " :meth :`unverifiable` 및 :attr:`origin_req_host` 어트리뷰트를 지원해야 합니다. request는 "
365
- " 쿠키를 설정할 수 있는지 확인하는 것뿐만 아니라 쿠키 어트리뷰트의 기본값을 설정하는 데 사용됩니다."
358
+ ":mod:`urllib.request`\\ 에 설명되어 있듯이 메서드 :meth:`get_full_url` 과 어트리뷰트 "
359
+ ":attr:`host`, :attr :`unverifiable` 및 :attr:`origin_req_host`\\ 를 지원해야 합니다."
360
+ " request는 쿠키를 설정할 수 있는지 확인하는 것뿐만 아니라 쿠키 어트리뷰트의 기본값을 설정하는 데 사용됩니다."
366
361
367
362
#: ../../library/http.cookiejar.rst:203
368
363
msgid "Set the :class:`CookiePolicy` instance to be used."
@@ -550,14 +545,13 @@ msgid ""
550
545
msgstr "다음 :class:`CookieJar` 서브 클래스는 읽기와 쓰기를 위해 제공됩니다."
551
546
552
547
#: ../../library/http.cookiejar.rst:324
553
- #, fuzzy
554
548
msgid ""
555
549
"A :class:`FileCookieJar` that can load from and save cookies to disk in "
556
550
"the Mozilla ``cookies.txt`` file format (which is also used by curl and "
557
551
"the Lynx and Netscape browsers)."
558
552
msgstr ""
559
- "Mozilla ``cookies.txt`` 파일 형식(Lynx와 Netscape 브라우저에서도 사용됩니다)으로 디스크에서 쿠키를 "
560
- "로드하고 저장할 수 있는 :class:`FileCookieJar`."
553
+ "Mozilla ``cookies.txt`` 파일 형식(curl, Lynx 및 Netscape 브라우저에서도 사용됩니다)으로 "
554
+ "디스크에서 쿠키를 로드하고 저장할 수 있는 :class:`FileCookieJar`."
561
555
562
556
#: ../../library/http.cookiejar.rst:330
563
557
msgid ""
@@ -759,6 +753,15 @@ msgid ""
759
753
" return False\n"
760
754
" return True"
761
755
msgstr ""
756
+ "import http.cookiejar\n"
757
+ "class MyCookiePolicy(http.cookiejar.DefaultCookiePolicy):\n"
758
+ " def set_ok(self, cookie, request):\n"
759
+ " if not http.cookiejar.DefaultCookiePolicy.set_ok(self, cookie, "
760
+ "request):\n"
761
+ " return False\n"
762
+ " if i_dont_want_to_store_this_cookie(cookie):\n"
763
+ " return False\n"
764
+ " return True"
762
765
763
766
#: ../../library/http.cookiejar.rst:460
764
767
msgid ""
@@ -774,7 +777,6 @@ msgstr ""
774
777
" 엄격성 스위치가 있습니다 (일부 양성 쿠키를 차단하는 대가를 치르면서)."
775
778
776
779
#: ../../library/http.cookiejar.rst:466
777
- #, fuzzy
778
780
msgid ""
779
781
"A domain blocklist and allowlist is provided (both off by default). Only "
780
782
"domains not in the blocklist and present in the allowlist (if the "
@@ -784,14 +786,13 @@ msgid ""
784
786
"and methods for *allowed_domains*). If you set an allowlist, you can "
785
787
"turn it off again by setting it to :const:`None`."
786
788
msgstr ""
787
- "도메인 블랙리스트와 화이트리스트가 제공됩니다 (둘 다 기본적으로 꺼져있습니다). 블랙리스트에 없고 화이트리스트에 있는(화이트리스트가 "
788
- " 활성화되었다면) 도메인만 쿠키 설정과 반환에 참여합니다. *blocked_domains* 생성자 인자와 "
789
+ "도메인 차단 목록과 수락 목록이 제공됩니다 (둘 다 기본적으로 꺼져있습니다). 차단 목록에 없고 수락 목록에 있는(수락 목록이 "
790
+ "활성화되었다면) 도메인만 쿠키 설정과 반환에 참여합니다. *blocked_domains* 생성자 인자와 "
789
791
":meth:`blocked_domains` 및 :meth:`set_blocked_domains` 메서드 (그리고 "
790
- "*allowed_domains*\\ 를 위한 해당 인자와 메서드)를 사용하십시오. 화이트리스트를 설정하면, "
791
- ":const:`None`\\ 으로 설정하여 화이트리스트를 다시 끌 수 있습니다."
792
+ "*allowed_domains*\\ 를 위한 해당 인자와 메서드)를 사용하십시오. 수락 목록을 설정하면, "
793
+ ":const:`None`\\ 으로 설정하여 수락 목록을 다시 끌 수 있습니다."
792
794
793
795
#: ../../library/http.cookiejar.rst:474
794
- #, fuzzy
795
796
msgid ""
796
797
"Domains in block or allow lists that do not start with a dot must equal "
797
798
"the cookie domain to be matched. For example, ``\" example.com\" `` "
@@ -805,7 +806,7 @@ msgid ""
805
806
"192.168.1.2 is blocked, but 193.168.1.2 is not."
806
807
msgstr ""
807
808
"점으로 시작하지 않는 차단 또는 수락 목록에 있는 도메인은 일치할 쿠키 도메인과 같아야 합니다. 예를 들어, "
808
- "``\" example.com\" ``\\ 은 블랙리스트 항목 ``\" example.com\" ``\\ 과 일치하지만, "
809
+ "``\" example.com\" ``\\ 은 차단 목록 항목 ``\" example.com\" ``\\ 과 일치하지만, "
809
810
"``\" www.example.com\" ``\\ 은 일치하지 않습니다. 점으로 시작하는 도메인은 더 구체적인 도메인과도 일치합니다. "
810
811
"예를 들어, ``\" www.example.com\" ``\\ 과 ``\" www.coyote.example.com\" ``\\ 은 모두 "
811
812
"``\" .example.com\" ``\\ 과 일치합니다 (하지만 ``\" example.com\" `` 자체는 일치하지 않습니다). IP"
@@ -825,11 +826,10 @@ msgid "Set the sequence of blocked domains."
825
826
msgstr "차단된 도메인 시퀀스를 설정합니다."
826
827
827
828
#: ../../library/http.cookiejar.rst:498
828
- #, fuzzy
829
829
msgid ""
830
830
"Return ``True`` if *domain* is on the blocklist for setting or receiving "
831
831
"cookies."
832
- msgstr "*domain*\\ 이 쿠키 설정이나 수신에 대한 블랙리스트에 있는지를 반환합니다."
832
+ msgstr "*domain*\\ 이 쿠키 설정이나 수신에 대한 차단 목록에 있으면 ``True`` \\ 를 반환합니다."
833
833
834
834
#: ../../library/http.cookiejar.rst:504
835
835
msgid "Return :const:`None`, or the sequence of allowed domains (as a tuple)."
@@ -840,11 +840,10 @@ msgid "Set the sequence of allowed domains, or :const:`None`."
840
840
msgstr "수락 도메인 시퀀스, 또는 :const:`None`\\ 을 설정합니다."
841
841
842
842
#: ../../library/http.cookiejar.rst:514
843
- #, fuzzy
844
843
msgid ""
845
844
"Return ``True`` if *domain* is not on the allowlist for setting or "
846
845
"receiving cookies."
847
- msgstr "*domain*\\ 이 쿠키 설정이나 수신에 대한 화이트리스트에 없는지를 반환합니다."
846
+ msgstr "*domain*\\ 이 쿠키 설정이나 수신에 대한 수락 목록에 있으면 ``True`` \\ 를 반환합니다."
848
847
849
848
#: ../../library/http.cookiejar.rst:517
850
849
msgid ""
@@ -1030,9 +1029,8 @@ msgid ""
1030
1029
msgstr "포트나 포트 집합을 나타내는 문자열 (예를 들어 '80'이나 '80,8080'), 또는 :const:`None`."
1031
1030
1032
1031
#: ../../library/http.cookiejar.rst:654
1033
- #, fuzzy
1034
1032
msgid "Cookie domain (a string)."
1035
- msgstr "쿠키 이름 (문자열)."
1033
+ msgstr "쿠키 도메인 (문자열)."
1036
1034
1037
1035
#: ../../library/http.cookiejar.rst:659
1038
1036
msgid "Cookie path (a string, eg. ``'/acme/rocket_launchers'``)."
@@ -1144,6 +1142,11 @@ msgid ""
1144
1142
"urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))\n"
1145
1143
"r = opener.open(\" http://example.com/\" )"
1146
1144
msgstr ""
1145
+ "import http.cookiejar, urllib.request\n"
1146
+ "cj = http.cookiejar.CookieJar()\n"
1147
+ "opener = "
1148
+ "urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))\n"
1149
+ "r = opener.open(\" http://example.com/\" )"
1147
1150
1148
1151
#: ../../library/http.cookiejar.rst:754
1149
1152
msgid ""
@@ -1164,6 +1167,13 @@ msgid ""
1164
1167
"urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))\n"
1165
1168
"r = opener.open(\" http://example.com/\" )"
1166
1169
msgstr ""
1170
+ "import os, http.cookiejar, urllib.request\n"
1171
+ "cj = http.cookiejar.MozillaCookieJar()\n"
1172
+ "cj.load(os.path.join(os.path.expanduser(\" ~\" ), \" .netscape\" , "
1173
+ "\" cookies.txt\" ))\n"
1174
+ "opener = "
1175
+ "urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))\n"
1176
+ "r = opener.open(\" http://example.com/\" )"
1167
1177
1168
1178
#: ../../library/http.cookiejar.rst:763
1169
1179
msgid ""
@@ -1188,9 +1198,13 @@ msgid ""
1188
1198
"urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))\n"
1189
1199
"r = opener.open(\" http://example.com/\" )"
1190
1200
msgstr ""
1191
-
1192
- #~ msgid ""
1193
- #~ "LoadError was made a subclass of "
1194
- #~ ":exc:`OSError` instead of :exc:`IOError`."
1195
- #~ msgstr "LoadError는 :exc:`IOError` 대신 :exc:`OSError`\\의 서브 클래스가 되었습니다."
1201
+ "import urllib.request\n"
1202
+ "from http.cookiejar import CookieJar, DefaultCookiePolicy\n"
1203
+ "policy = DefaultCookiePolicy(\n"
1204
+ " rfc2965=True, strict_ns_domain=Policy.DomainStrict,\n"
1205
+ " blocked_domains=[\" ads.net\" , \" .ads.net\" ])\n"
1206
+ "cj = CookieJar(policy)\n"
1207
+ "opener = "
1208
+ "urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))\n"
1209
+ "r = opener.open(\" http://example.com/\" )"
1196
1210
0 commit comments