Skip to content

Commit e7c562c

Browse files
author
Jaap Roes
committed
Small whitespace and line length fixes
1 parent 04920e4 commit e7c562c

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

imagekit/processors/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from pilkit.processors import *
22

33
__all__ = [
4-
# Base
5-
'ProcessorPipeline', 'Adjust', 'Reflection', 'Transpose',
6-
'Anchor', 'MakeOpaque',
7-
# Crop
8-
'TrimBorderColor', 'Crop', 'SmartCrop',
9-
# Resize
10-
'Resize', 'ResizeToCover', 'ResizeToFill', 'SmartResize',
11-
'ResizeCanvas', 'AddBorder', 'ResizeToFit', 'Thumbnail'
4+
# Base
5+
'ProcessorPipeline', 'Adjust', 'Reflection', 'Transpose',
6+
'Anchor', 'MakeOpaque',
7+
# Crop
8+
'TrimBorderColor', 'Crop', 'SmartCrop',
9+
# Resize
10+
'Resize', 'ResizeToCover', 'ResizeToFill', 'SmartResize',
11+
'ResizeCanvas', 'AddBorder', 'ResizeToFit', 'Thumbnail'
1212
]

imagekit/specs/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def generate(self):
146146
" with it." % self)
147147

148148
# TODO: Move into a generator base class
149-
# TODO: Factor out a generate_image function so you can create a generator and only override the PIL.Image creating part. (The tricky part is how to deal with original_format since generator base class won't have one.)
149+
# TODO: Factor out a generate_image function so you can create a generator and only override the PIL.Image creating part.
150+
# (The tricky part is how to deal with original_format since generator base class won't have one.)
150151

151152
closed = self.source.closed
152153
if closed:

imagekit/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
_autodiscovered = False
1414

15+
1516
def get_nonabstract_descendants(model):
1617
""" Returns all non-abstract descendants of the model. """
1718
if not model._meta.abstract:
@@ -133,7 +134,7 @@ def sanitize_cache_key(key):
133134
# The also can't be > 250 chars long. Since we don't know what the
134135
# user's cache ``KEY_FUNCTION`` setting is like, we'll limit it to 200.
135136
if len(new_key) >= 200:
136-
new_key = '%s:%s' % (new_key[:200-33], md5(key.encode('utf-8')).hexdigest())
137+
new_key = '%s:%s' % (new_key[:200 - 33], md5(key.encode('utf-8')).hexdigest())
137138

138139
key = new_key
139140
return key

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
def exec_file(filepath, globalz=None, localz=None):
24-
exec(read(filepath), globalz, localz)
24+
exec(read(filepath), globalz, localz)
2525

2626

2727
# Load package meta from the pkgmeta module without loading imagekit.

0 commit comments

Comments
 (0)