** Changed in: pyflakes Importance: Undecided => Wishlist ** Bug watch added: Debian Bug tracker #641317 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641317
** Also affects: pyflakes (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641317 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Divmod- dev, which is the registrant for Pyflakes. https://bugs.launchpad.net/bugs/848455 Title: Detect misuse of except Status in Pyflakes: New Status in “pyflakes” package in Debian: Unknown Bug description: It would be nice if pyflakes could detect mistakes like this: try: oldtime = os.path.getmtime(fname) except OSError, IOError: oldtime = 0 In the general case, it's obviously difficult to tell whether this is an error or not; but I suspect that handling the exception variable name as a binding would give you a "redefinition of Foo" warning in most of the cases where a mistake has been made. To manage notifications about this bug go to: https://bugs.launchpad.net/pyflakes/+bug/848455/+subscriptions -- Mailing list: https://launchpad.net/~divmod-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~divmod-dev More help : https://help.launchpad.net/ListHelp

