typo
This commit is contained in:
parent
076893cc1e
commit
18f339bc97
16
odoo-rpc.py
16
odoo-rpc.py
|
@ -54,14 +54,14 @@ eprint( MODEL_IGNORE )
|
|||
|
||||
|
||||
|
||||
def flatten(items):
|
||||
"""Yield items from any nested iterable; see Reference."""
|
||||
for x in items:
|
||||
if isinstance(x, Iterable) and not isinstance(x, (str, bytes)):
|
||||
for sub_x in flatten(x):
|
||||
yield sub_x
|
||||
else:
|
||||
yield x
|
||||
# def flatten(items):
|
||||
# """Yield items from any nested iterable; see Reference."""
|
||||
# for x in items:
|
||||
# if isinstance(x, Iterable) and not isinstance(x, (str, bytes)):
|
||||
# for sub_x in flatten(x):
|
||||
# yield sub_x
|
||||
# else:
|
||||
# yield x
|
||||
|
||||
|
||||
def jlog( obj ):
|
||||
|
|
Loading…
Reference in New Issue