Skip to content

Commit d5755c1

Browse files
committed
le-python.el (lispy--dict): Update
1 parent 8cf735d commit d5755c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

le-python.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ If so, return an equivalent of ITEM = ARRAY_LIKE[IDX]; ITEM."
569569
(while (setq k (pop plist))
570570
(setq v (pop plist))
571571
(push (format
572-
"\"%s\": %s"
572+
"'%s': %s"
573573
(cond ((keywordp k)
574574
(substring (symbol-name k) 1))
575575
((stringp k)
@@ -581,6 +581,8 @@ If so, return an equivalent of ITEM = ARRAY_LIKE[IDX]; ITEM."
581581
"True")
582582
((eq v nil)
583583
"None")
584+
((stringp v)
585+
(format "'%s'" v))
584586
(t
585587
(prin1-to-string v)))) r))
586588
(concat "{"

0 commit comments

Comments
 (0)