Skip to content

Commit 04c0870

Browse files
ShaharNavehWillAyd
authored andcommitted
DOC: Fix to lzma.LZMAFile (pandas-dev#30010)
1 parent e73ed45 commit 04c0870

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/compat/__init__.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def is_platform_32bit() -> bool:
9898

9999
def _import_lzma():
100100
"""
101-
Attempts to import the lzma module.
101+
Importing the `lzma` module.
102102
103103
Warns
104104
-----
105-
When the lzma module is not available.
105+
When the `lzma` module is not available.
106106
"""
107107
try:
108108
import lzma
@@ -119,22 +119,22 @@ def _import_lzma():
119119

120120
def _get_lzma_file(lzma):
121121
"""
122-
Attempting to get the lzma.LZMAFile class.
122+
Importing the `LZMAFile` class from the `lzma` module.
123123
124124
Returns
125125
-------
126126
class
127-
The lzma.LZMAFile class.
127+
The `LZMAFile` class from the `lzma` module.
128128
129129
Raises
130130
------
131131
RuntimeError
132-
If the module lzma was not imported correctly, or didn't exist.
132+
If the `lzma` module was not imported correctly, or didn't exist.
133133
"""
134134
if lzma is None:
135135
raise RuntimeError(
136136
"lzma module not available. "
137-
"A Python re-install with the proper "
138-
"dependencies might be required to solve this issue."
137+
"A Python re-install with the proper dependencies, "
138+
"might be required to solve this issue."
139139
)
140140
return lzma.LZMAFile

0 commit comments

Comments
 (0)