From 2522d77d95a7867b26e6d2666dd7bfeefc6e8703 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 10 Jun 2004 05:19:55 +0000 Subject: [PATCH] minor touchup to self.closed --- direct/src/directnotify/RotatingLog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/directnotify/RotatingLog.py b/direct/src/directnotify/RotatingLog.py index 57baf21a1d..ca521efc2e 100755 --- a/direct/src/directnotify/RotatingLog.py +++ b/direct/src/directnotify/RotatingLog.py @@ -35,8 +35,10 @@ class RotatingLog: if hasattr(self, "file"): self.file.flush() self.file.close() + self.closed = self.file.closed del self.file - self.closed = self.file.closed + else: + self.closed = 1 def shouldRotate(self): """