Fix ValueError for IPython 6.3
@@ -72,7 +72,6 @@ def create_editor_hook(pydev_host, pydev_client_port):
return call_editor
-
class PyDevIPCompleter(IPCompleter):
def __init__(self, *args, **kwargs):
@@ -80,8 +79,11 @@ class PyDevIPCompleter(IPCompleter):
in addition to the completion support provided by IPython """
IPCompleter.__init__(self, *args, **kwargs)
# Use PyDev for python matches, see getCompletions below
+ if self.python_matches in self.matchers:
+ # `self.python_matches` matches attributes or global python names
self.matchers.remove(self.python_matches)
+
class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
banner1 = Unicode(default_pydev_banner, config=True,
help="""The part of the banner to be printed before the profile"""
