This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2015-07-14.05:10:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436850651.25.0.287114682674.issue24631@psf.upfronthosting.co.za>
In-reply-to
Content
Issue5633 introduced a regression in 3.5.

$ ./python -m timeit -s "a = 1" -s "b = 2"
Traceback (most recent call last):
  File "/home/serhiy/py/cpython-3.5/Lib/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/serhiy/py/cpython-3.5/Lib/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/serhiy/py/cpython-3.5/Lib/timeit.py", line 338, in <module>
    sys.exit(main())
  File "/home/serhiy/py/cpython-3.5/Lib/timeit.py", line 296, in main
    t = Timer(stmt, setup, timer)
  File "/home/serhiy/py/cpython-3.5/Lib/timeit.py", line 122, in __init__
    compile(setup + '\n' + stmt, dummy_src_name, "exec")
  File "<timeit-src>", line 2
    b = 2
    ^
IndentationError: unexpected indent

Proposed patch fixes it.
History
Date User Action Args
2015-07-14 05:10:51serhiy.storchakasetrecipients: + serhiy.storchaka
2015-07-14 05:10:51serhiy.storchakasetmessageid: <1436850651.25.0.287114682674.issue24631@psf.upfronthosting.co.za>
2015-07-14 05:10:51serhiy.storchakalinkissue24631 messages
2015-07-14 05:10:50serhiy.storchakacreate