1
0
forked from VimPlug/jedi

Remove no_unicode_pprint

This commit is contained in:
Dave Halter
2020-07-02 00:54:17 +02:00
parent aab9fd2fbe
commit 1df98c5bd6
3 changed files with 4 additions and 18 deletions

View File

@@ -439,7 +439,7 @@ def get_global_filters(context, until_position, origin_scope):
For global name lookups. The filters will handle name resolution
themselves, but here we gather possible filters downwards.
>>> from jedi._compatibility import u, no_unicode_pprint
>>> from jedi._compatibility import u
>>> from jedi import Script
>>> script = Script(u('''
... x = ['a', 'b', 'c']
@@ -455,7 +455,7 @@ def get_global_filters(context, until_position, origin_scope):
First we get the names from the function scope.
>>> no_unicode_pprint(filters[0]) # doctest: +ELLIPSIS
>>> print(filters[0]) # doctest: +ELLIPSIS
MergedFilter(<ParserTreeFilter: ...>, <GlobalNameFilter: ...>)
>>> sorted(str(n) for n in filters[0].values()) # doctest: +NORMALIZE_WHITESPACE
['<TreeNameDefinition: string_name=func start_pos=(3, 4)>',