Skip to content

Commit 9230d16

Browse files
committed
Maintain 2.5 compatibility
1 parent 023402d commit 9230d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,8 @@ def push(self, s, insert_into_history=True):
754754
self.rl_history.append(s)
755755
try:
756756
self.rl_history.save(histfilename, getpreferredencoding(), self.config.hist_length)
757-
except EnvironmentError as (errno, strerr):
758-
self.interact.notify("Write error for file: %s. %s " % (histfilename, strerr))
757+
except EnvironmentError, err:
758+
self.interact.notify("Write error for file: %s. %s " % (histfilename, err.strerror))
759759
else:
760760
self.rl_history.append(s)
761761

0 commit comments

Comments
 (0)