diff --git a/direct/src/directnotify/RotatingLog.py b/direct/src/directnotify/RotatingLog.py index a14eb2c10e..57baf21a1d 100755 --- a/direct/src/directnotify/RotatingLog.py +++ b/direct/src/directnotify/RotatingLog.py @@ -36,13 +36,7 @@ class RotatingLog: self.file.flush() self.file.close() del self.file - if hasattr(self, "closed"): - del self.closed - del self.mode - del self.name - del self.softspace - #del self.encoding - #del self.newlines + self.closed = self.file.closed def shouldRotate(self): """