[Python-apps-team] Bug#641317: pyflakes: please detect "except" overwriting built-in exceptions

Jakub Wilk jwilk at debian.org
Mon Sep 12 15:40:42 UTC 2011


Package: pyflakes
Version: 0.5.0-1
Severity: wishlist

It'd nice if pyflakes emitted a warning on code like this:

         try:
             oldtime=os.path.getmtime(fname)
         except OSError,IOError:
             oldtime=0

(Note missing parentheses around "OSError,IOError".)

-- 
Jakub Wilk





More information about the Python-apps-team mailing list