Fix #919 - Use class names in super call not self.__class__
authorJessica Tallon <jessica@megworld.co.uk>
Tue, 30 Sep 2014 11:50:51 +0000 (12:50 +0100)
committerJessica Tallon <jessica@megworld.co.uk>
Tue, 30 Sep 2014 11:50:51 +0000 (12:50 +0100)
mediagoblin/media_types/ascii/processing.py
mediagoblin/media_types/audio/processing.py
mediagoblin/media_types/image/processing.py
mediagoblin/media_types/pdf/processing.py
mediagoblin/media_types/raw_image/processing.py
mediagoblin/media_types/stl/processing.py
mediagoblin/media_types/video/processing.py

index 712b0692e5593d9747a544b065bde8c3ed2f58d0..ed6600eee4522c588c16df5173693827d0729eb0 100644 (file)
@@ -273,6 +273,6 @@ class Resizer(CommonAsciiProcessor):
 
 class AsciiProcessingManager(ProcessingManager):
     def __init__(self):
-        super(self.__class__, self).__init__()
+        super(AsciiProcessingManager, self).__init__()
         self.add_processor(InitialProcessor)
         self.add_processor(Resizer)
index c4ed4eca6e944dd3b2b927715fb6ab3bb729eb93..de6fa9ca3af9cc64f1bc24cf79f7ced99c392c1d 100644 (file)
@@ -370,7 +370,7 @@ class Transcoder(CommonAudioProcessor):
 
 class AudioProcessingManager(ProcessingManager):
     def __init__(self):
-        super(self.__class__, self).__init__()
+        super(AudioProcessingManager, self).__init__()
         self.add_processor(InitialProcessor)
         self.add_processor(Resizer)
         self.add_processor(Transcoder)
index dc6a275eed478a23d2f64c9c7f995130f8867462..a941e5603c980f0cf778728f5ddb9851b7e9de88 100644 (file)
@@ -369,7 +369,7 @@ class Resizer(CommonImageProcessor):
 
 class ImageProcessingManager(ProcessingManager):
     def __init__(self):
-        super(self.__class__, self).__init__()
+        super(ImageProcessingManager, self).__init__()
         self.add_processor(InitialProcessor)
         self.add_processor(Resizer)
 
index 08a000199d6c0f3baf0363dee8f1df23bfdd274a..f6d10a5f5136641e881c2ffe7729724371ba1370 100644 (file)
@@ -467,6 +467,6 @@ class Resizer(CommonPdfProcessor):
 
 class PdfProcessingManager(ProcessingManager):
     def __init__(self):
-        super(self.__class__, self).__init__()
+        super(PdfProcessingManager, self).__init__()
         self.add_processor(InitialProcessor)
         self.add_processor(Resizer)
index 5ff54cf37cb61a7c2475426fbccb1e58b5069719..740ba2ddaa25b97c52f66231b4f84a1da61cb178 100644 (file)
@@ -54,7 +54,7 @@ class InitialRawProcessor(InitialProcessor):
         """
         Pull out a full-size JPEG-preview
         """
-        super(self.__class__, self).common_setup()
+        super(InitialRawProcessor, self).common_setup()
 
         self._original_raw = self.process_filename
 
@@ -77,6 +77,6 @@ class InitialRawProcessor(InitialProcessor):
 
 class RawImageProcessingManager(ProcessingManager):
     def __init__(self):
-        super(self.__class__, self).__init__()
+        super(RawImageProcessingManager, self).__init__()
         self.add_processor(InitialRawProcessor)
         self.add_processor(Resizer)
index 65a86234c1f399774504c493b67bd530262d8506..55764aeb2454047af51b56d0c969f70b6ff270a2 100644 (file)
@@ -365,6 +365,6 @@ class Resizer(CommonStlProcessor):
 
 class StlProcessingManager(ProcessingManager):
     def __init__(self):
-        super(self.__class__, self).__init__()
+        super(StlProcessingManager, self).__init__()
         self.add_processor(InitialProcessor)
         self.add_processor(Resizer)
index a7716592a9671a32f315e27734a038a6895cd189..bbed4f129e3ddfd18b5702d540cfd8d40380b632 100644 (file)
@@ -456,7 +456,7 @@ class Transcoder(CommonVideoProcessor):
 
 class VideoProcessingManager(ProcessingManager):
     def __init__(self):
-        super(self.__class__, self).__init__()
+        super(VideoProcessingManager, self).__init__()
         self.add_processor(InitialProcessor)
         self.add_processor(Resizer)
         self.add_processor(Transcoder)