This commit is contained in:
Kovid Goyal 2025-08-29 07:45:33 +05:30
commit 496bc88f08
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: