From f480541d7d2df7cc35d32bb84aa87ab937e8f35c Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <> Date: Tue, 3 Dec 2019 22:31:41 +0200 Subject: [PATCH 1/2] DOC: Fix to lzma.LZMAFile --- pandas/compat/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index f95dd8679308f..15852e1aa406b 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -123,7 +123,7 @@ def _get_lzma_file(lzma): Returns ------- - class + lzma.LZMAFile The lzma.LZMAFile class. Raises From cd1f392de67abcf56715a7985c2f4cf65ba8c1e6 Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <> Date: Wed, 4 Dec 2019 17:15:05 +0200 Subject: [PATCH 2/2] DOC: Updated pandas/compact/__init__.py --- pandas/compat/__init__.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 15852e1aa406b..60cfecd5804ac 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -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 @@ -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 ------- - lzma.LZMAFile - The lzma.LZMAFile class. + 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