From: Jessica Tallon Date: Tue, 30 Sep 2014 11:50:51 +0000 (+0100) Subject: Fix #919 - Use class names in super call not self.__class__ X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1a2982d6e3cac2f9a2d8427e568dd621035efc33;p=mediagoblin.git Fix #919 - Use class names in super call not self.__class__ --- diff --git a/mediagoblin/media_types/ascii/processing.py b/mediagoblin/media_types/ascii/processing.py index 712b0692..ed6600ee 100644 --- a/mediagoblin/media_types/ascii/processing.py +++ b/mediagoblin/media_types/ascii/processing.py @@ -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) diff --git a/mediagoblin/media_types/audio/processing.py b/mediagoblin/media_types/audio/processing.py index c4ed4eca..de6fa9ca 100644 --- a/mediagoblin/media_types/audio/processing.py +++ b/mediagoblin/media_types/audio/processing.py @@ -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) diff --git a/mediagoblin/media_types/image/processing.py b/mediagoblin/media_types/image/processing.py index dc6a275e..a941e560 100644 --- a/mediagoblin/media_types/image/processing.py +++ b/mediagoblin/media_types/image/processing.py @@ -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) diff --git a/mediagoblin/media_types/pdf/processing.py b/mediagoblin/media_types/pdf/processing.py index 08a00019..f6d10a5f 100644 --- a/mediagoblin/media_types/pdf/processing.py +++ b/mediagoblin/media_types/pdf/processing.py @@ -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) diff --git a/mediagoblin/media_types/raw_image/processing.py b/mediagoblin/media_types/raw_image/processing.py index 5ff54cf3..740ba2dd 100644 --- a/mediagoblin/media_types/raw_image/processing.py +++ b/mediagoblin/media_types/raw_image/processing.py @@ -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) diff --git a/mediagoblin/media_types/stl/processing.py b/mediagoblin/media_types/stl/processing.py index 65a86234..55764aeb 100644 --- a/mediagoblin/media_types/stl/processing.py +++ b/mediagoblin/media_types/stl/processing.py @@ -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) diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py index a7716592..bbed4f12 100644 --- a/mediagoblin/media_types/video/processing.py +++ b/mediagoblin/media_types/video/processing.py @@ -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)