Index: tests/filterpyflakes.py =================================================================== --- tests/filterpyflakes.py +++ tests/filterpyflakes.py @@ -16,6 +16,9 @@ # for cffi, allow re-exports from pure.* r"cffi/[^:]*:.*\bimport \*' used", r"cffi/[^:]*:.*\*' imported but unused", + # This use of xrange is protected behind a conditional and + # is safe. + r"contrib/perf\.py:\d+: undefined name 'xrange'", ] keep = True