Skip to content

Commit 254aeaf

Browse files
committed
Use correct file mode
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 0b626d4 commit 254aeaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def append_reload_and_write(self, s, filename, encoding):
204204
return self.append(s)
205205

206206
try:
207-
with codecs.open(filename, 'rw+', encoding, 'ignore') as hfile:
207+
with codecs.open(filename, 'a+', encoding, 'ignore') as hfile:
208208
with FileLock(hfile) as lock:
209209
# read entries
210210
hfile.seek(0, os.SEEK_SET)

0 commit comments

Comments
 (0)