Show More
@@ -15,6 +15,7 b' from . import (' | |||
|
15 | 15 | node, |
|
16 | 16 | parser, |
|
17 | 17 | pycompat, |
|
18 | util, | |
|
18 | 19 | ) |
|
19 | 20 | |
|
20 | 21 | elements = { |
@@ -581,11 +582,11 b' def _quote(s):' | |||
|
581 | 582 | >>> _quote("asdf'\"") |
|
582 | 583 | '\'asdf\\\'"\'' |
|
583 | 584 | >>> _quote('asdf\'') |
|
584 |
|
|
|
585 | "'asdf\\''" | |
|
585 | 586 | >>> _quote(1) |
|
586 | 587 | "'1'" |
|
587 | 588 | """ |
|
588 | return repr(str(s)) | |
|
589 | return "'%s'" % util.escapestr('%s' % s) | |
|
589 | 590 | |
|
590 | 591 | def formatspec(expr, *args): |
|
591 | 592 | ''' |
General Comments 0
You need to be logged in to leave comments.
Login now