# HG changeset patch # User Matt Mackall # Date 1318392965 18000 # Node ID fc035e5370ca6fb3d9d0fdec02007ab6c93259f5 # Parent 73015301db86de8c5cee38e7f23c33cbfe2efd14 pyflakes: clean up some import noise diff -r 73015301db86 -r fc035e5370ca mercurial/commands.py --- a/mercurial/commands.py Tue Oct 11 20:21:13 2011 -0500 +++ b/mercurial/commands.py Tue Oct 11 23:16:05 2011 -0500 @@ -1852,6 +1852,7 @@ % os.path.dirname(__file__)) try: import bdiff, mpatch, base85, osutil + dir(bdiff), dir(mpatch), dir(base85), dir(osutil) # quiet pyflakes except Exception, inst: ui.write(" %s\n" % inst) ui.write(_(" One or more extensions could not be found")) diff -r 73015301db86 -r fc035e5370ca mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py Tue Oct 11 20:21:13 2011 -0500 +++ b/mercurial/hgweb/server.py Tue Oct 11 23:16:05 2011 -0500 @@ -246,6 +246,7 @@ try: from threading import activeCount + activeCount() # silence pyflakes _mixin = SocketServer.ThreadingMixIn except ImportError: if util.safehasattr(os, "fork"): diff -r 73015301db86 -r fc035e5370ca tests/test-check-pyflakes.t --- a/tests/test-check-pyflakes.t Tue Oct 11 20:21:13 2011 -0500 +++ b/tests/test-check-pyflakes.t Tue Oct 11 23:16:05 2011 -0500 @@ -1,11 +1,6 @@ $ "$TESTDIR/hghave" pyflakes || exit 80 $ cd $(dirname $TESTDIR) $ pyflakes mercurial hgext 2>&1 | $TESTDIR/filterpyflakes.py - mercurial/hgweb/server.py:*: 'activeCount' imported but unused (glob) - mercurial/commands.py:*: 'base85' imported but unused (glob) - mercurial/commands.py:*: 'bdiff' imported but unused (glob) - mercurial/commands.py:*: 'mpatch' imported but unused (glob) - mercurial/commands.py:*: 'osutil' imported but unused (glob) hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)