From 08f8dcfae4d35e997cec9043f9f22d4a1e979829 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sat, 11 May 2013 21:37:53 +0200 Subject: [PATCH] Do not repeat defaults in Interpreter.__init__ --- jedi/api.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jedi/api.py b/jedi/api.py index ef28e3d4..fb7f2d09 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -526,8 +526,7 @@ class Interpreter(Script): """ - def __init__(self, source, namespaces=[], line=None, column=None, - source_path=None, source_encoding='utf-8'): + def __init__(self, source, namespaces=[], **kwds): """ 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 `source`. """ - super(Interpreter, self).__init__( - source, line, column, source_path, source_encoding, fast=False) + super(Interpreter, self).__init__(source, fast=False, **kwds) importer = interpret.ObjectImporter(self._parser.scope) for ns in namespaces: