Explorar o código

Exception is an old-style class in 2.4, can't use super. Closes #178. Thanks to totolici.

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
b5f12bf961
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/concurrency/processes/pool.py

+ 1 - 1
celery/concurrency/processes/pool.py

@@ -72,7 +72,7 @@ class MaybeEncodingError(Exception):
     def __init__(self, exc, value):
         self.exc = str(exc)
         self.value = repr(value)
-        super(MaybeEncodingError, self).__init__(self.exc, self.value)
+        Exception.__init__(self, self.exc, self.value)
 
     def __repr__(self):
         return "<MaybeEncodingError: %s>" % str(self)