Skip to content

Commit 2349722

Browse files
abenkovskiisebastinas
authored andcommitted
Fix NameError when saving to a file
1 parent 98a8269 commit 2349722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def write2file(self):
838838
self.interact.notify(_('Save cancelled.'))
839839
return
840840

841-
session_test = self.formatforfile(self.getstdout())
841+
stdout_text = self.formatforfile(self.getstdout())
842842

843843
try:
844844
with open(fn, mode) as f:

0 commit comments

Comments
 (0)