summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index ad5d538..301870c 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -357,7 +357,7 @@ if _exists("openat"):
# whether to follow symlinks
flag = 0 if followlinks else AT_SYMLINK_NOFOLLOW
- names = fdlistdir(topfd)
+ names = flistdir(topfd)
dirs, nondirs = [], []
for name in names:
# Here, we don't use AT_SYMLINK_NOFOLLOW to be consistent with