Skip to content

Commit 798a7df

Browse files
committed
chore: vim.uv instead of vim.loop
1 parent 93c480a commit 798a7df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/python_import/utils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ local function find_python_first_party_modules(bufnr)
9999
local files = vim.fn.readdir(dir)
100100
for _, file in ipairs(files) do
101101
local path = dir .. "/" .. file
102-
local stat = vim.loop.fs_stat(path)
103-
if stat.type == "directory" then
102+
local stat = (vim.uv or vim.loop).fs_stat(path)
103+
if stat ~= nil and stat.type == "directory" then
104104
-- no egg-info
105105
if file:match "%.egg%-info$" == nil then
106106
modules[#modules + 1] = file

0 commit comments

Comments
 (0)