diff --git a/PIL/SunImagePlugin.py b/PIL/SunImagePlugin.py index 059bcb655..c3e2bc402 100644 --- a/PIL/SunImagePlugin.py +++ b/PIL/SunImagePlugin.py @@ -85,9 +85,7 @@ class SunImageFile(ImageFile.ImageFile): else: self.mode, rawmode = 'RGB', 'BGRX' else: - raise SyntaxError("Unsupported Mode/Bit Depth") - - + raise SyntaxError("Unsupported Mode/Bit Depth") if palette_length: if palette_length > 1024: diff --git a/Tests/test_file_sun.py b/Tests/test_file_sun.py index deac32394..40eb73898 100644 --- a/Tests/test_file_sun.py +++ b/Tests/test_file_sun.py @@ -38,7 +38,6 @@ class TestFileSun(PillowTestCase): os.listdir(EXTRA_DIR) if os.path.splitext(f)[1] in ('.sun', '.SUN', '.ras')) for path in files: - print (path) with Image.open(path) as im: im.load() self.assertIsInstance(im, SunImagePlugin.SunImageFile)