Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Aug 24, 2023
1 parent 4ef43fd commit 50e0027
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions menuinst/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def _process_all(
return results


def _install_adapter(path: PathLike, remove: bool = False, prefix: PathLike = DEFAULT_PREFIX, **kwargs):
def _install_adapter(
path: PathLike, remove: bool = False, prefix: PathLike = DEFAULT_PREFIX, **kwargs
):
"""
This function is only here as a legacy adapter for menuinst v1.x.
Please use `menuinst.api` functions instead.
Expand Down Expand Up @@ -163,4 +165,4 @@ def _install_adapter(path: PathLike, remove: bool = False, prefix: PathLike = DE
if remove:
remove(metadata, target_prefix=prefix, **kwargs)
else:
install(metadata, target_prefix=prefix, **kwargs)
install(metadata, target_prefix=prefix, **kwargs)
2 changes: 1 addition & 1 deletion tests/test_backwards_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@pytest.mark.skipif(os.name != "nt", reason="Windows only")
def test_import_paths():
"These import paths are/were used by conda <=23.7.2. Ensure they still work."
from menuinst import install # noqa
from menuinst import install # noqa
from menuinst.knownfolders import FOLDERID, get_folder_path # noqa
from menuinst.win32 import dirs_src # noqa
from menuinst.winshortcut import create_shortcut # noqa

0 comments on commit 50e0027

Please sign in to comment.