We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
\r
1 parent 2c7520d commit 97e8d3aCopy full SHA for 97e8d3a
1 file changed
src/polars_access_mdbtools/__init__.py
@@ -36,10 +36,15 @@ def list_table_names(db_path: str | Path) -> list[str]:
36
:param db_path: The MS Access database file.
37
:return: A list of the tables in a given database.
38
"""
39
- tables = subprocess.check_output( # noqa: S603
40
- ["mdb-tables", "--single-column", _path_to_cmd_str(db_path)], # noqa: S607
41
- ).decode()
42
- return tables.strip().split("\n")
+ tables = (
+ subprocess.check_output( # noqa: S603
+ ["mdb-tables", "--single-column", _path_to_cmd_str(db_path)], # noqa: S607
+ )
43
+ .decode()
44
+ .replace("\r\n", "\n")
45
+ .strip()
46
47
+ return tables.split("\n")
48
49
50
def _convert_data_type_from_access_to_polars( # noqa: C901, PLR0911, PLR0912
0 commit comments