summaryrefslogtreecommitdiff
path: root/modules/language/python/format2.scm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/language/python/format2.scm')
-rw-r--r--modules/language/python/format2.scm11
1 files changed, 2 insertions, 9 deletions
diff --git a/modules/language/python/format2.scm b/modules/language/python/format2.scm
index 22cb318..eb6b8d0 100644
--- a/modules/language/python/format2.scm
+++ b/modules/language/python/format2.scm
@@ -57,6 +57,7 @@
"x")))
(let ((prec (if prec prec 6))
+ (min (if min min 0))
(c (if c c "")))
(match tp
("c"
@@ -220,15 +221,7 @@
((#:% #f c min #:* _ tp)
(lambda (prec x)
((create c min prec tp) x)))
-
- ((#:% #f (and c (or "s" "r" "a")) min prec _ tp)
- (create c 0 prec tp))
-
- ((#:% tag (and c (or "s" "r" "a")) min prec _ tp)
- (let ((f (create c 0 prec tp)))
- (lambda (x)
- (f (pylist-ref x tag)))))
-
+
((#:% #f c min prec _ tp)
(create c min prec tp))
((#:% tag c min prec _ tp)