@@ -17,9 +17,8 @@ msgstr ""
1717"Generated-By : Babel 2.17.0\n "
1818
1919#: ../../library/lzma.rst:2
20- #, fuzzy
2120msgid ":mod:`!lzma` --- Compression using the LZMA algorithm"
22- msgstr ":mod:`lzma` --- LZMA 알고리즘을 사용한 압축"
21+ msgstr ":mod:`! lzma` --- LZMA 알고리즘을 사용한 압축"
2322
2423#: ../../library/lzma.rst:12
2524msgid "**Source code:** :source:`Lib/lzma.py`"
@@ -38,17 +37,16 @@ msgstr ""
3837" 지원하는 파일 인터페이스도 포함되어 있습니다."
3938
4039#: ../../library/lzma.rst:21
41- #, fuzzy
4240msgid ""
4341"The interface provided by this module is very similar to that of the "
4442":mod:`bz2` module. Note that :class:`LZMAFile` and :class:`bz2.BZ2File` "
4543"are *not* thread-safe, so if you need to use a single :class:`LZMAFile` "
4644"instance from multiple threads, it is necessary to protect it with a "
4745"lock."
4846msgstr ""
49- "이 모듈에서 제공하는 인터페이스는 :mod:`bz2` 모듈의 인터페이스와 매우 유사합니다. 그러나, "
50- ":class:`LZMAFile` \\ 은 :class:` bz2.BZ2File`\\ 과 달리 스레드 안전하지 *않아서*, 여러 스레드에서 "
51- "단일 :class:`LZMAFile` 인스턴스를 사용해야 하면 록으로 보호해야 합니다."
47+ "이 모듈에서 제공하는 인터페이스는 :mod:`bz2` 모듈의 인터페이스와 매우 유사합니다. :class:`LZMAFile` \\ 과 "
48+ ":class:`bz2.BZ2File`\\ 은 스레드 안전하지 *않아서*, 여러 스레드에서 단일 :class:`LZMAFile` "
49+ "인스턴스를 사용해야 하면 록으로 보호해야 합니다."
5250
5351#: ../../library/lzma.rst:29
5452msgid ""
@@ -181,21 +179,19 @@ msgstr ""
181179"투명하게 디코딩됩니다."
182180
183181#: ../../library/lzma.rst:102
184- #, fuzzy
185182msgid ""
186183":class:`LZMAFile` supports all the members specified by "
187184":class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` "
188185"and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` "
189186"statement are supported."
190187msgstr ""
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` 문이 지원됩니다."
194191
195192#: ../../library/lzma.rst:107
196- #, fuzzy
197193msgid "The following method and attributes are also provided:"
198- msgstr "다음과 같은 메서드도 제공됩니다:"
194+ msgstr "다음과 같은 메서드와 어트리뷰트도 제공됩니다:"
199195
200196#: ../../library/lzma.rst:111
201197msgid ""
@@ -484,14 +480,13 @@ msgstr ""
484480"때문에), :attr:`~.needs_input` 어트리뷰트는 ``True``\\ 로 설정됩니다."
485481
486482#: ../../library/lzma.rst:275
487- #, fuzzy
488483msgid ""
489484"Attempting to decompress data after the end of stream is reached raises "
490485"an :exc:`EOFError`. Any data found after the end of the stream is "
491486"ignored and saved in the :attr:`~.unused_data` attribute."
492487msgstr ""
493- "스트림 끝에 도달한 후 데이터 압축 해제를 시도하면 `EOFError`\\ 가 발생합니다. 스트림 끝 이후에 발견되는 모든 데이터는 "
494- "무시되고 :attr:`~.unused_data` 어트리뷰트에 저장됩니다."
488+ "스트림 끝에 도달한 후 데이터 압축 해제를 시도하면 :exc: `EOFError`\\ 가 발생합니다. 스트림 끝 이후에 발견되는 모든 "
489+ "데이터는 무시되고 :attr:`~.unused_data` 어트리뷰트에 저장됩니다."
495490
496491#: ../../library/lzma.rst:279
497492msgid "Added the *max_length* parameter."
@@ -751,6 +746,9 @@ msgid ""
751746"with lzma.open(\" file.xz\" ) as f:\n"
752747" file_content = f.read()"
753748msgstr ""
749+ "import lzma\n"
750+ "with lzma.open(\" file.xz\" ) as f:\n"
751+ " file_content = f.read()"
754752
755753#: ../../library/lzma.rst:411
756754msgid "Creating a compressed file::"
@@ -763,6 +761,10 @@ msgid ""
763761"with lzma.open(\" file.xz\" , \" w\" ) as f:\n"
764762" f.write(data)"
765763msgstr ""
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)"
766768
767769#: ../../library/lzma.rst:418
768770msgid "Compressing data in memory::"
@@ -774,6 +776,9 @@ msgid ""
774776"data_in = b\" Insert Data Here\" \n"
775777"data_out = lzma.compress(data_in)"
776778msgstr ""
779+ "import lzma\n"
780+ "data_in = b\" Insert Data Here\" \n"
781+ "data_out = lzma.compress(data_in)"
777782
778783#: ../../library/lzma.rst:424
779784msgid "Incremental compression::"
@@ -790,6 +795,14 @@ msgid ""
790795"# Concatenate all the partial results:\n"
791796"result = b\"\" .join([out1, out2, out3, out4])"
792797msgstr ""
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])"
793806
794807#: ../../library/lzma.rst:435
795808msgid "Writing compressed data to an already-open file::"
@@ -804,6 +817,12 @@ msgid ""
804817" lzf.write(b\" This *will* be compressed\\ n\" )\n"
805818" f.write(b\" Not compressed\\ n\" )"
806819msgstr ""
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\" )"
807826
808827#: ../../library/lzma.rst:444
809828msgid "Creating a compressed file using a custom filter chain::"
@@ -820,4 +839,11 @@ msgid ""
820839"with lzma.open(\" file.xz\" , \" w\" , filters=my_filters) as f:\n"
821840" f.write(b\" blah blah blah\" )"
822841msgstr ""
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\" )"
823849
0 commit comments