Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
33092: capitalize class name to respect PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
seblabbe committed Jan 9, 2022
1 parent 7cb0ea3 commit e15197f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sage/features/imagemagick.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
from . import Executable, FeatureTestResult
from .join_feature import JoinFeature

class convert(Executable):
class Convert(Executable):
r"""
A :class:`~sage.features.Feature` describing the presence of ``convert``
EXAMPLES::
sage: from sage.features.imagemagick import convert
sage: convert().is_present() # optional - imagemagick
sage: from sage.features.imagemagick import Convert
sage: Convert().is_present() # optional - imagemagick
FeatureTestResult('convert', True)
"""
def __init__(self):
r"""
TESTS::
sage: from sage.features.imagemagick import convert
sage: isinstance(convert(), convert)
sage: from sage.features.imagemagick import Convert
sage: isinstance(Convert(), Convert)
True
"""
Executable.__init__(self, "convert", executable="convert")
Expand All @@ -46,8 +46,8 @@ def is_functional(self):
EXAMPLES::
sage: from sage.features.imagemagick import convert
sage: convert().is_functional() # optional - imagemagick
sage: from sage.features.imagemagick import Convert
sage: Convert().is_functional() # optional - imagemagick
FeatureTestResult('convert', True)
"""
Expand Down Expand Up @@ -122,7 +122,7 @@ def __init__(self):
True
"""
JoinFeature.__init__(self, "imagemagick",
[convert()],
[Convert()],
spkg="imagemagick",
url="https://www.imagemagick.org/")

Expand Down

0 comments on commit e15197f

Please sign in to comment.