Commit c6db5c80 authored by Nicolas Dumazet's avatar Nicolas Dumazet

improve code readability

- several statements belong to several lines
- use bools over ints
- not(foo in bar) -> foo not in bar
- (if not b: return 0; else: return 1) -> return b


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29758 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e05dc370
......@@ -32,11 +32,12 @@ from zLOG import LOG
def isSameSet(a, b):
for i in a:
if not(i in b) : return 0
if i not in b:
return False
for i in b:
if not(i in a): return 0
if len(a) != len(b) : return 0
return 1
if i not in a:
return False
return len(a) == len(b)
class TestERP5BankingMixin:
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment