From 18f339bc97c5357a2ca80551ea2c225f26137621 Mon Sep 17 00:00:00 2001 From: DiG Date: Mon, 17 Jan 2022 15:22:43 +0100 Subject: [PATCH] typo --- odoo-rpc.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/odoo-rpc.py b/odoo-rpc.py index c9df2c1..4244e2b 100755 --- a/odoo-rpc.py +++ b/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 ):