~divmod-dev/pyflakes/trunk

Viewing all changes in revision 44.

  • Committer: Jean-Paul Calderone
  • Date: 2012-01-10 19:09:22 UTC
  • mfrom: (41.3.2)
  • Revision ID: git-v1:a2150f8e3675fd3478d4a62f540065e7664a093a
Add WindowsError as a known built-in name on all platforms, suppressing warnings about it being used but undefined when using pyflakes on a non-Windows platform.

This may suppress legitimate warnings, since using WindowsError in a code path that
will actually be evaluated on a non-Windows platform is invalid.  However, it is too
hard for pyflakes to figure out which code paths will run, so trade the lost legitimate
warnings in exchange for also getting rid of some bogus warnings.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: