mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-23 13:51:27 +08:00
Fix a doctest
This commit is contained in:
@@ -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.
|
Returns the dotted path inside a sys.path as a list of names. e.g.
|
||||||
|
|
||||||
>>> from os.path import abspath
|
>>> transform_path_to_dotted(["/foo"], Path('/foo/bar/baz.py'))
|
||||||
>>> transform_path_to_dotted([abspath("/foo")], abspath('/foo/bar/baz.py'))
|
|
||||||
(('bar', 'baz'), False)
|
(('bar', 'baz'), False)
|
||||||
|
|
||||||
Returns (None, False) if the path doesn't really resolve to anything.
|
Returns (None, False) if the path doesn't really resolve to anything.
|
||||||
|
|||||||
Reference in New Issue
Block a user