~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d654236
)
catacomb/__init__.py: Hack because Python 3 won't destructure arguments.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 21 Oct 2019 17:25:28 +0000
(18:25 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:44:21 +0000
(12:44 +0100)
Why?!
catacomb/__init__.py
patch
|
blob
|
blame
|
history
diff --git
a/catacomb/__init__.py
b/catacomb/__init__.py
index
24c96e0
..
9e4d47f
100644
(file)
--- 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(':')