Explorar o código

WatchedFileHandler: Fixes Python <= 2.5 compat. Closes #367.

adriano petrich %!s(int64=14) %!d(string=hai) anos
pai
achega
ae9d08146b
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      celery/utils/compat.py

+ 3 - 3
celery/utils/compat.py

@@ -515,9 +515,9 @@ else:
             This handler is based on a suggestion and patch by Chad J.
             Schroeder.
             """
-            def __init__(self, filename, mode='a', encoding=None, delay=0):
-                logging.FileHandler.__init__(self, filename, mode,
-                                             encoding, delay)
+            def __init__(self, *args, **kwargs):
+                logging.FileHandler.__init__(self, *args, **kwargs)
+
                 if not os.path.exists(self.baseFilename):
                     self.dev, self.ino = -1, -1
                 else: