catacomb/__init__.py: Hack because Python 3 won't destructure arguments.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 21 Oct 2019 17:25:28 +0000 (18:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:44:21 +0000 (12:44 +0100)
Why?!

catacomb/__init__.py

index 24c96e0..9e4d47f 100644 (file)
@@ -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(':')