From: Mark Wooding Date: Mon, 21 Oct 2019 17:25:28 +0000 (+0100) Subject: catacomb/__init__.py: Hack because Python 3 won't destructure arguments. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/85866c8af471e4895023f0d9c63cc9e913e1835a catacomb/__init__.py: Hack because Python 3 won't destructure arguments. Why?! --- diff --git a/catacomb/__init__.py b/catacomb/__init__.py index 24c96e0..9e4d47f 100644 --- a/catacomb/__init__.py +++ b/catacomb/__init__.py @@ -161,7 +161,8 @@ def _pp_commas(pp, printfn, items): else: pp.text(','); pp.breakable() printfn(i) def _pp_dict(pp, items): - def p((k, v)): + def p(kv): + k, v = kv pp.begin_group(0) pp.pretty(k) pp.text(':')