From da15e916de32db5ddd7be3f26d21cedbe640fb1f Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 12 Jul 2020 01:37:41 +0200 Subject: [PATCH] Fix a doctest --- jedi/inference/sys_path.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jedi/inference/sys_path.py b/jedi/inference/sys_path.py index bc91d56d..23068e4b 100644 --- a/jedi/inference/sys_path.py +++ b/jedi/inference/sys_path.py @@ -219,8 +219,7 @@ def transform_path_to_dotted(sys_path, module_path): """ Returns the dotted path inside a sys.path as a list of names. e.g. - >>> from os.path import abspath - >>> transform_path_to_dotted([abspath("/foo")], abspath('/foo/bar/baz.py')) + >>> transform_path_to_dotted(["/foo"], Path('/foo/bar/baz.py')) (('bar', 'baz'), False) Returns (None, False) if the path doesn't really resolve to anything.