Skip to content

Commit f35f805

Browse files
committed
Be consistent with history file expansion
1 parent 2b8c30b commit f35f805

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpython/repl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,8 +899,9 @@ def push(self, s, insert_into_history=True):
899899
return more
900900

901901
def insert_into_history(self, s):
902+
pythonhist = os.path.expanduser(self.config.hist_file)
902903
try:
903-
self.rl_history.append_reload_and_write(s, self.config.hist_file,
904+
self.rl_history.append_reload_and_write(s, pythonhist,
904905
getpreferredencoding())
905906
except RuntimeError as e:
906907
self.interact.notify(u"%s" % (e, ))

0 commit comments

Comments
 (0)