forked from VimPlug/jedi
Do not repeat defaults in Interpreter.__init__
This commit is contained in:
@@ -526,8 +526,7 @@ class Interpreter(Script):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, source, namespaces=[], line=None, column=None,
|
def __init__(self, source, namespaces=[], **kwds):
|
||||||
source_path=None, source_encoding='utf-8'):
|
|
||||||
"""
|
"""
|
||||||
Parse `source` and mixin interpreted Python objects from `namespaces`.
|
Parse `source` and mixin interpreted Python objects from `namespaces`.
|
||||||
|
|
||||||
@@ -541,8 +540,7 @@ class Interpreter(Script):
|
|||||||
If `line` and `column` are None, they are assumed be at the end of
|
If `line` and `column` are None, they are assumed be at the end of
|
||||||
`source`.
|
`source`.
|
||||||
"""
|
"""
|
||||||
super(Interpreter, self).__init__(
|
super(Interpreter, self).__init__(source, fast=False, **kwds)
|
||||||
source, line, column, source_path, source_encoding, fast=False)
|
|
||||||
|
|
||||||
importer = interpret.ObjectImporter(self._parser.scope)
|
importer = interpret.ObjectImporter(self._parser.scope)
|
||||||
for ns in namespaces:
|
for ns in namespaces:
|
||||||
|
|||||||
Reference in New Issue
Block a user