diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-11-02 20:07:26 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-11-02 20:07:26 (GMT) |
commit | 47395617bc2a6d2188039bf30e637bc203f93aba (patch) | |
tree | 0eb85bbca0f7dd25c619186c565f92fd63dfb886 /Doc/library/timeit.rst | |
parent | c38c816ea16b37cdc07970474c2a477f216c27ce (diff) | |
download | cpython-47395617bc2a6d2188039bf30e637bc203f93aba.zip cpython-47395617bc2a6d2188039bf30e637bc203f93aba.tar.gz cpython-47395617bc2a6d2188039bf30e637bc203f93aba.tar.bz2 |
Issue #16261: fix bare excepts in Doc/
Diffstat (limited to 'Doc/library/timeit.rst')
-rw-r--r-- | Doc/library/timeit.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/timeit.rst b/Doc/library/timeit.rst index a487917..0cc1586 100644 --- a/Doc/library/timeit.rst +++ b/Doc/library/timeit.rst @@ -151,7 +151,7 @@ The module defines three convenience functions and a public class: t = Timer(...) # outside the try/except try: t.timeit(...) # or t.repeat(...) - except: + except Exception: t.print_exc() The advantage over the standard traceback is that source lines in the |