mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Fix indentation of examples in lzma module documentation.
This commit is contained in:
parent
fd0ddab97b
commit
667a13bf2a
1 changed files with 2 additions and 2 deletions
|
@ -336,14 +336,14 @@ Reading in a compressed file::
|
|||
|
||||
import lzma
|
||||
with lzma.LZMAFile("file.xz") as f:
|
||||
file_content = f.read()
|
||||
file_content = f.read()
|
||||
|
||||
Creating a compressed file::
|
||||
|
||||
import lzma
|
||||
data = b"Insert Data Here"
|
||||
with lzma.LZMAFile("file.xz", "w") as f:
|
||||
f.write(data)
|
||||
f.write(data)
|
||||
|
||||
Compressing data in memory::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue