Fix whitespace for flake8 compliance
Fixed various whitespace issues and a global variable reference to
comply with flake8 linting.
@@ -234,7 +234,10 @@ class ArtResizer(six.with_metaclass(Shareable, object)):
return WEBPROXY, (0)
+
im_legacy = None
+
+
def get_im_version():
"""Return Image Magick version or None if it is unavailable
Try invoking ImageMagick's "magick". If "magick" is unavailable,
@@ -250,6 +253,7 @@ def get_im_version():
pattern = br".+ (\d+)\.(\d+)\.(\d+).*"
match = re.search(pattern, out)
if match:
+ global im_legacy
im_legacy = bool(isLegacy)
return (int(match.group(1)),
int(match.group(2)),
