We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57aa616 commit 0a6e34cCopy full SHA for 0a6e34c
bpython/history.py
@@ -182,7 +182,7 @@ def load_from(self, fd):
182
return entries if len(entries) else ['']
183
184
def save(self, filename, encoding, lines=0):
185
- fd = os.open(filename, os.O_WRONLY | os.O_CREAT | os.TRUNC,
+ fd = os.open(filename, os.O_WRONLY | os.O_CREAT | os.O_TRUNC,
186
stat.S_IRUSR | stat.S_IWUSR)
187
with io.open(fd, 'w', encoding=encoding,
188
errors='ignore') as hfile:
0 commit comments