directnotify: Don't assume presence of softspace attribute

This commit is contained in:
rdb 2023-09-16 09:50:55 +02:00
parent 144479d8e4
commit 8596207d8e
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ class RotatingLog:
self.closed = self.file.closed
self.mode = self.file.mode
self.name = self.file.name
self.softspace = self.file.softspace
if hasattr(self.file, 'softspace'):
self.softspace = self.file.softspace
#self.encoding = self.file.encoding # Python 2.3
#self.newlines = self.file.newlines # Python 2.3, maybe