1
0
forked from VimPlug/jedi

Remove the scandir compatibility

This commit is contained in:
Dave Halter
2020-07-02 00:38:44 +02:00
parent fb34df3987
commit 3262ad4350
4 changed files with 5 additions and 27 deletions

View File

@@ -7,7 +7,6 @@ import pytest
from ..helpers import root_dir
from jedi.api.helpers import _start_match, _fuzzy_match
from jedi._compatibility import scandir
def test_in_whitespace(Script):
@@ -88,7 +87,7 @@ def test_loading_unicode_files_with_bad_global_charset(Script, monkeypatch, tmpd
def test_complete_expanduser(Script):
possibilities = scandir(expanduser('~'))
possibilities = os.scandir(expanduser('~'))
non_dots = [p for p in possibilities if not p.name.startswith('.') and len(p.name) > 1]
item = non_dots[0]
line = "'~%s%s'" % (os.sep, item.name)