From 85866c8af471e4895023f0d9c63cc9e913e1835a Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 21 Oct 2019 18:25:28 +0100 Subject: [PATCH] catacomb/__init__.py: Hack because Python 3 won't destructure arguments. Why?! --- catacomb/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(':') -- 2.11.0