Skip to content

Commit 5757969

Browse files
committed
Remove unnecessary check
1 parent d533ad2 commit 5757969

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bpython/simpleeval.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ def evaluate_current_expression(
227227
# Find the biggest valid ast.
228228
# Once our attribute access is found, return its .value subtree
229229

230-
if namespace is None:
231-
namespace = {}
232-
233230
# in case attribute is blank, e.g. foo.| -> foo.xxx|
234231
temp_line = line[:cursor_offset] + "xxx" + line[cursor_offset:]
235232
temp_cursor = cursor_offset + 3

0 commit comments

Comments
 (0)