Skip to content

Commit be0f7ff

Browse files
committed
flake8 whitepace fixes.
1 parent 1c64580 commit be0f7ff

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

roundup/anypy/cmp_.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
try:
22
None < 0
3+
34
def NoneAndDictComparable(v):
45
return v
56
except TypeError:
@@ -52,17 +53,23 @@ def __cmp__(self, other):
5253

5354
def __eq__(self, other):
5455
return self.__cmp__(other) == 0
56+
5557
def __ne__(self, other):
5658
return self.__cmp__(other) != 0
59+
5760
def __lt__(self, other):
5861
return self.__cmp__(other) < 0
62+
5963
def __le__(self, other):
6064
return self.__cmp__(other) <= 0
65+
6166
def __ge__(self, other):
6267
return self.__cmp__(other) >= 0
68+
6369
def __gt__(self, other):
6470
return self.__cmp__(other) > 0
6571

72+
6673
def _test():
6774
Comp = NoneAndDictComparable
6875

@@ -83,13 +90,14 @@ def _test():
8390
assert not Comp(1) < Comp(0)
8491
assert not Comp(0) > Comp(0)
8592

86-
assert Comp({ 0: None }) < Comp({ 0: 0 })
87-
assert Comp({ 0: 0 }) < Comp({ 0: 1 })
93+
assert Comp({0: None}) < Comp({0: 0})
94+
assert Comp({0: 0}) < Comp({0: 1})
95+
96+
assert Comp({0: 0}) == Comp({0: 0})
97+
assert Comp({0: 0}) != Comp({0: 1})
98+
assert Comp({0: 0, 1: 1}) > Comp({0: 1})
99+
assert Comp({0: 0, 1: 1}) < Comp({0: 0, 2: 2})
88100

89-
assert Comp({ 0: 0 }) == Comp({ 0: 0 })
90-
assert Comp({ 0: 0 }) != Comp({ 0: 1 })
91-
assert Comp({ 0: 0, 1: 1 }) > Comp({ 0: 1 })
92-
assert Comp({ 0: 0, 1: 1 }) < Comp({ 0: 0, 2: 2 })
93101

94102
if __name__ == '__main__':
95103
_test()

0 commit comments

Comments
 (0)