Skip to content

Commit

Permalink
Moar PEP 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Feb 28, 2013
1 parent 041432e commit acb9eba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/zope/sequencesort/ssort.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def make_sortfunctions(sortfields, _):
func = cmp # builtin
elif f_name == "nocase":
func = nocase
elif f_name in ("locale", "strcoll"):
elif f_name in ("locale", "strcoll"): #pragma NO COVER
func = strcoll
elif f_name in ("locale_nocase", "strcoll_nocase"):
elif f_name in ("locale_nocase", "strcoll_nocase"): #pragma NO COVER
func = strcoll_nocase
else: # no - look it up in the namespace
if hasattr(_, 'getitem'):
Expand Down Expand Up @@ -250,7 +250,8 @@ def __call__(self, o1, o2):
c1, c2 = o1[i], o2[i]
func, multiplier = sf_list[i][1:3]
n = func(c1, c2)
if n: return n*multiplier
if n:
return n * multiplier

# all functions returned 0 - identical sequences
return 0

0 comments on commit acb9eba

Please sign in to comment.