Skip to content

Commit

Permalink
DOC: Fix to lzma.LZMAFile (pandas-dev#30010)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaharNaveh authored and proost committed Dec 19, 2019
1 parent 3efaeb3 commit acb5488
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pandas/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def is_platform_32bit() -> bool:

def _import_lzma():
"""
Attempts to import the lzma module.
Importing the `lzma` module.
Warns
-----
When the lzma module is not available.
When the `lzma` module is not available.
"""
try:
import lzma
Expand All @@ -119,22 +119,22 @@ def _import_lzma():

def _get_lzma_file(lzma):
"""
Attempting to get the lzma.LZMAFile class.
Importing the `LZMAFile` class from the `lzma` module.
Returns
-------
class
The lzma.LZMAFile class.
The `LZMAFile` class from the `lzma` module.
Raises
------
RuntimeError
If the module lzma was not imported correctly, or didn't exist.
If the `lzma` module was not imported correctly, or didn't exist.
"""
if lzma is None:
raise RuntimeError(
"lzma module not available. "
"A Python re-install with the proper "
"dependencies might be required to solve this issue."
"A Python re-install with the proper dependencies, "
"might be required to solve this issue."
)
return lzma.LZMAFile

0 comments on commit acb5488

Please sign in to comment.