Skip to content

Commit

Permalink
Removed unused pragma comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emcconville committed Jul 9, 2019
1 parent 948d6b2 commit 563fbc7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions wand/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,6 @@ def seed(self, value):
if library.MagickSetSeed is None:
msg = 'Property requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
assertions.assert_unsigned_integer(seed=value)
self._seed = value
library.MagickSetSeed(self.wand, value)
Expand Down Expand Up @@ -2734,7 +2733,6 @@ def auto_threshold(self, method='kapur'):
if library.MagickAutoThresholdImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
assertions.string_in_list(AUTO_THRESHOLD_METHODS,
'wand.image.AUTO_THRESHOLD_METHODS',
method=method)
Expand Down Expand Up @@ -2911,7 +2909,6 @@ def canny(self, radius=0.0, sigma=1.0, lower_percent=0.1,
if library.MagickCannyEdgeImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
assertions.assert_real(radius=radius, sigma=sigma,
lower_percent=lower_percent,
upper_percent=upper_percent)
Expand Down Expand Up @@ -3388,7 +3385,6 @@ def complex(self, operator='undefined', snr=None):
if library.MagickComplexImages is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
assertions.string_in_list(COMPLEX_OPERATORS,
'wand.image.COMPLEX_OPERATORS',
operator=operator)
Expand Down Expand Up @@ -4578,7 +4574,6 @@ def hough_lines(self, width, height=None, threshold=40):
if library.MagickHoughLineImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
if height is None:
height = width
assertions.assert_unsigned_integer(width=width, height=height,
Expand Down Expand Up @@ -4818,7 +4813,6 @@ def kuwahara(self, radius=1.0, sigma=None):
if library.MagickKuwaharaImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
if sigma is None:
sigma = radius - 0.5
assertions.assert_real(radius=radius, sigma=sigma)
Expand Down Expand Up @@ -4917,7 +4911,6 @@ def levelize(self, black=0.0, white=None, gamma=1.0, channel=None):
if library.MagickLevelizeImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
if white is None:
white = float(self.quantum_range)
assertions.assert_real(black=black, white=white, gamma=gamma)
Expand Down Expand Up @@ -5074,7 +5067,6 @@ def mean_shift(self, width, height, color_distance=0.1):
if library.MagickMeanShiftImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
assertions.assert_counting_number(width=width, height=height)
assertions.assert_real(color_distance=color_distance)
if 0 < color_distance <= 1.0:
Expand Down Expand Up @@ -5659,7 +5651,6 @@ def polynomial(self, arguments):
if library.MagickPolynomialImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
if not isinstance(arguments, abc.Sequence):
raise TypeError('expected sequence of doubles, not ' +
repr(arguments))
Expand Down Expand Up @@ -5816,7 +5807,6 @@ def range_threshold(self, low_black=0.0, low_white=None, high_white=None,
if library.MagickRangeThresholdImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
# Populate defaults to follow CLI behavior
if low_white is None:
low_white = low_black
Expand Down Expand Up @@ -7285,7 +7275,6 @@ def wavelet_denoise(self, threshold=0.0, softness=0.0):
if library.MagickWaveletDenoiseImage is None:
msg = 'Method requires ImageMagick version 7.0.8-41 or greater.'
raise WandLibraryVersionError(msg)
# pragma: no cover
assertions.assert_real(threshold=threshold, softness=softness)
if 0.0 < threshold <= 1.0:
threshold *= self.quantum_range
Expand Down

0 comments on commit 563fbc7

Please sign in to comment.