diff options
Diffstat (limited to 'Doc/library/tokenize.rst')
-rw-r--r-- | Doc/library/tokenize.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/tokenize.rst b/Doc/library/tokenize.rst index 61b8497..0359f84 100644 --- a/Doc/library/tokenize.rst +++ b/Doc/library/tokenize.rst @@ -90,9 +90,9 @@ objects:: """Substitute Decimals for floats in a string of statements. >>> from decimal import Decimal - >>> s = 'print +21.3e-5*-.1234/81.7' + >>> s = 'print(+21.3e-5*-.1234/81.7)' >>> decistmt(s) - "print +Decimal ('21.3e-5')*-Decimal ('.1234')/Decimal ('81.7')" + "print(+Decimal ('21.3e-5')*-Decimal ('.1234')/Decimal ('81.7'))" >>> exec(s) -3.21716034272e-007 |