Skip to content

Commit

Permalink
#128 - pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonc committed Sep 8, 2017
1 parent 11c1c77 commit 4559b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sc/social/like/subscribers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def social_content_check(obj, event):

request = obj.REQUEST
try:
view = getMultiAdapter((obj, request), name="social_likes_view")
view = getMultiAdapter((obj, request), name='social_likes_view')
except ComponentLookupError:
logger.info('not instaled.')
return
Expand Down
2 changes: 1 addition & 1 deletion sc/social/like/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ def get_ratio(w, h):
w = float(w)
h = float(h)
r = w % h or w
return '%s' % float((w / r) / (h / r))
return '{}'.format(float((w / r) / (h / r)))

0 comments on commit 4559b5c

Please sign in to comment.