mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-31 09:10:25 -05:00
Merge branch 'log-fix' of https://github.com/qykth-git/calibre
This commit is contained in:
commit
496bc88f08
@ -285,7 +285,7 @@ class RotatingStream:
|
||||
self.stream = share_open(self.filename, 'a', newline='')
|
||||
else:
|
||||
# see https://bugs.python.org/issue27805
|
||||
self.stream = open(os.open(self.filename, os.O_WRONLY|os.O_APPEND|os.O_CREAT|os.O_CLOEXEC), 'w')
|
||||
self.stream = open(os.open(self.filename, os.O_WRONLY|os.O_APPEND|os.O_CREAT|os.O_CLOEXEC, mode=0o666), 'w')
|
||||
try:
|
||||
self.stream.tell()
|
||||
except OSError:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user