Skip to content

Commit 2a5dd2c

Browse files
committed
fix pretty-printing of number literals
1 parent 1d4a605 commit 2a5dd2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/PrintAst.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ private module PrettyPrinting {
550550
or
551551
a instanceof Ellipsis and result = "..."
552552
or
553-
result = a.(Num).toString()
553+
result = a.(Num).getText()
554554
or
555555
result = a.(NegativeIntegerLiteral).getValue().toString()
556556
or

0 commit comments

Comments
 (0)