Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb6eb39

Browse filesBrowse files
committed
Default locals is set-up in super().__init__
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 2480377 commit cb6eb39
Copy full SHA for cb6eb39

1 file changed

-2Lines changed: 0 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bpython/curtsiesfrontend/interpreter.py‎

Copy file name to clipboardExpand all lines: bpython/curtsiesfrontend/interpreter.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def __init__(self, locals=None, encoding=None):
7373
We include an argument for the outfile to pass to the formatter for it
7474
to write to.
7575
"""
76-
if locals is None:
77-
locals = {"__name__": "__console__", "__doc__": None}
7876
if encoding is None:
7977
encoding = getpreferredencoding()
8078
ReplInterpreter.__init__(self, locals, encoding)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.