From 2e4f73760dcbf1fb15bea4c6a89e4a65012ef74d Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Fri, 23 Dec 2022 23:37:47 +0200 Subject: remove osutils.native_readdir.listdir Signed-off-by: Arthur Zamarin --- src/snakeoil/osutils/__init__.py | 2 +- src/snakeoil/osutils/native_readdir.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/snakeoil') diff --git a/src/snakeoil/osutils/__init__.py b/src/snakeoil/osutils/__init__.py index 036a78d..1910859 100644 --- a/src/snakeoil/osutils/__init__.py +++ b/src/snakeoil/osutils/__init__.py @@ -59,7 +59,7 @@ from . import native_readdir as module # force utf8 codepaths yet. from ..klass import steal_docs -listdir = module.listdir +listdir = os.listdir listdir_dirs = module.listdir_dirs listdir_files = module.listdir_files readdir = module.readdir diff --git a/src/snakeoil/osutils/native_readdir.py b/src/snakeoil/osutils/native_readdir.py index b129a9b..d7c2fd9 100644 --- a/src/snakeoil/osutils/native_readdir.py +++ b/src/snakeoil/osutils/native_readdir.py @@ -18,8 +18,6 @@ from stat import ( from ..mappings import ProtectedDict -listdir = os.listdir - # we can still use the cpy pjoin here, just need to do something about the # import cycle. pjoin = os.path.join -- cgit v1.2.3-65-gdbad