@@ -17,9 +17,8 @@ msgstr ""
17
17
"Generated-By : Babel 2.17.0\n "
18
18
19
19
#: ../../library/lzma.rst:2
20
- #, fuzzy
21
20
msgid ":mod:`!lzma` --- Compression using the LZMA algorithm"
22
- msgstr ":mod:`lzma` --- LZMA 알고리즘을 사용한 압축"
21
+ msgstr ":mod:`! lzma` --- LZMA 알고리즘을 사용한 압축"
23
22
24
23
#: ../../library/lzma.rst:12
25
24
msgid "**Source code:** :source:`Lib/lzma.py`"
@@ -38,17 +37,16 @@ msgstr ""
38
37
" 지원하는 파일 인터페이스도 포함되어 있습니다."
39
38
40
39
#: ../../library/lzma.rst:21
41
- #, fuzzy
42
40
msgid ""
43
41
"The interface provided by this module is very similar to that of the "
44
42
":mod:`bz2` module. Note that :class:`LZMAFile` and :class:`bz2.BZ2File` "
45
43
"are *not* thread-safe, so if you need to use a single :class:`LZMAFile` "
46
44
"instance from multiple threads, it is necessary to protect it with a "
47
45
"lock."
48
46
msgstr ""
49
- "이 모듈에서 제공하는 인터페이스는 :mod:`bz2` 모듈의 인터페이스와 매우 유사합니다. 그러나, "
50
- ":class:`LZMAFile` \\ 은 :class:` bz2.BZ2File`\\ 과 달리 스레드 안전하지 *않아서*, 여러 스레드에서 "
51
- "단일 :class:`LZMAFile` 인스턴스를 사용해야 하면 록으로 보호해야 합니다."
47
+ "이 모듈에서 제공하는 인터페이스는 :mod:`bz2` 모듈의 인터페이스와 매우 유사합니다. :class:`LZMAFile` \\ 과 "
48
+ ":class:`bz2.BZ2File`\\ 은 스레드 안전하지 *않아서*, 여러 스레드에서 단일 :class:`LZMAFile` "
49
+ "인스턴스를 사용해야 하면 록으로 보호해야 합니다."
52
50
53
51
#: ../../library/lzma.rst:29
54
52
msgid ""
@@ -181,21 +179,19 @@ msgstr ""
181
179
"투명하게 디코딩됩니다."
182
180
183
181
#: ../../library/lzma.rst:102
184
- #, fuzzy
185
182
msgid ""
186
183
":class:`LZMAFile` supports all the members specified by "
187
184
":class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` "
188
185
"and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` "
189
186
"statement are supported."
190
187
msgstr ""
191
- ":class:`LZMAFile`\\ 은 :meth:`detach`\\ 와 :meth:`truncate` \\ 를 제외하고, "
192
- ":class:`io.BufferedIOBase` 가 지정하는 모든 멤버를 지원합니다. 이터레이션과 :keyword:`with` 문이 "
193
- " 지원됩니다."
188
+ ":class:`LZMAFile`\\ 은 :meth:`~io.BufferedIOBase. detach`\\ 와 "
189
+ ":meth:`~io.IOBase.truncate` \\ 를 제외하고, : class:`io.BufferedIOBase` 가 지정하는 모든"
190
+ " 멤버를 지원합니다. 이터레이션과 :keyword:`with` 문이 지원됩니다."
194
191
195
192
#: ../../library/lzma.rst:107
196
- #, fuzzy
197
193
msgid "The following method and attributes are also provided:"
198
- msgstr "다음과 같은 메서드도 제공됩니다:"
194
+ msgstr "다음과 같은 메서드와 어트리뷰트도 제공됩니다:"
199
195
200
196
#: ../../library/lzma.rst:111
201
197
msgid ""
@@ -484,14 +480,13 @@ msgstr ""
484
480
"때문에), :attr:`~.needs_input` 어트리뷰트는 ``True``\\ 로 설정됩니다."
485
481
486
482
#: ../../library/lzma.rst:275
487
- #, fuzzy
488
483
msgid ""
489
484
"Attempting to decompress data after the end of stream is reached raises "
490
485
"an :exc:`EOFError`. Any data found after the end of the stream is "
491
486
"ignored and saved in the :attr:`~.unused_data` attribute."
492
487
msgstr ""
493
- "스트림 끝에 도달한 후 데이터 압축 해제를 시도하면 `EOFError`\\ 가 발생합니다. 스트림 끝 이후에 발견되는 모든 데이터는 "
494
- "무시되고 :attr:`~.unused_data` 어트리뷰트에 저장됩니다."
488
+ "스트림 끝에 도달한 후 데이터 압축 해제를 시도하면 :exc: `EOFError`\\ 가 발생합니다. 스트림 끝 이후에 발견되는 모든 "
489
+ "데이터는 무시되고 :attr:`~.unused_data` 어트리뷰트에 저장됩니다."
495
490
496
491
#: ../../library/lzma.rst:279
497
492
msgid "Added the *max_length* parameter."
@@ -751,6 +746,9 @@ msgid ""
751
746
"with lzma.open(\" file.xz\" ) as f:\n"
752
747
" file_content = f.read()"
753
748
msgstr ""
749
+ "import lzma\n"
750
+ "with lzma.open(\" file.xz\" ) as f:\n"
751
+ " file_content = f.read()"
754
752
755
753
#: ../../library/lzma.rst:411
756
754
msgid "Creating a compressed file::"
@@ -763,6 +761,10 @@ msgid ""
763
761
"with lzma.open(\" file.xz\" , \" w\" ) as f:\n"
764
762
" f.write(data)"
765
763
msgstr ""
764
+ "import lzma\n"
765
+ "data = b\" Insert Data Here\" \n"
766
+ "with lzma.open(\" file.xz\" , \" w\" ) as f:\n"
767
+ " f.write(data)"
766
768
767
769
#: ../../library/lzma.rst:418
768
770
msgid "Compressing data in memory::"
@@ -774,6 +776,9 @@ msgid ""
774
776
"data_in = b\" Insert Data Here\" \n"
775
777
"data_out = lzma.compress(data_in)"
776
778
msgstr ""
779
+ "import lzma\n"
780
+ "data_in = b\" Insert Data Here\" \n"
781
+ "data_out = lzma.compress(data_in)"
777
782
778
783
#: ../../library/lzma.rst:424
779
784
msgid "Incremental compression::"
@@ -790,6 +795,14 @@ msgid ""
790
795
"# Concatenate all the partial results:\n"
791
796
"result = b\"\" .join([out1, out2, out3, out4])"
792
797
msgstr ""
798
+ "import lzma\n"
799
+ "lzc = lzma.LZMACompressor()\n"
800
+ "out1 = lzc.compress(b\" Some data\\ n\" )\n"
801
+ "out2 = lzc.compress(b\" Another piece of data\\ n\" )\n"
802
+ "out3 = lzc.compress(b\" Even more data\\ n\" )\n"
803
+ "out4 = lzc.flush()\n"
804
+ "# 모든 부분 결과를 이어 붙입니다:\n"
805
+ "result = b\"\" .join([out1, out2, out3, out4])"
793
806
794
807
#: ../../library/lzma.rst:435
795
808
msgid "Writing compressed data to an already-open file::"
@@ -804,6 +817,12 @@ msgid ""
804
817
" lzf.write(b\" This *will* be compressed\\ n\" )\n"
805
818
" f.write(b\" Not compressed\\ n\" )"
806
819
msgstr ""
820
+ "import lzma\n"
821
+ "with open(\" file.xz\" , \" wb\" ) as f:\n"
822
+ " f.write(b\" This data will not be compressed\\ n\" )\n"
823
+ " with lzma.open(f, \" w\" ) as lzf:\n"
824
+ " lzf.write(b\" This *will* be compressed\\ n\" )\n"
825
+ " f.write(b\" Not compressed\\ n\" )"
807
826
808
827
#: ../../library/lzma.rst:444
809
828
msgid "Creating a compressed file using a custom filter chain::"
@@ -820,4 +839,11 @@ msgid ""
820
839
"with lzma.open(\" file.xz\" , \" w\" , filters=my_filters) as f:\n"
821
840
" f.write(b\" blah blah blah\" )"
822
841
msgstr ""
842
+ "import lzma\n"
843
+ "my_filters = [\n"
844
+ " {\" id\" : lzma.FILTER_DELTA, \" dist\" : 5},\n"
845
+ " {\" id\" : lzma.FILTER_LZMA2, \" preset\" : 7 | lzma.PRESET_EXTREME},\n"
846
+ "]\n"
847
+ "with lzma.open(\" file.xz\" , \" w\" , filters=my_filters) as f:\n"
848
+ " f.write(b\" blah blah blah\" )"
823
849
0 commit comments