Skip to content

Commit

Permalink
Merge pyflakes-cleanup-8122: Clean up the last non-deprecated, non-au…
Browse files Browse the repository at this point in the history
…togenerated pyflakes warnings

Author: adiroiban
Reviewer: hawkowl
Fixes: twisted#8122

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@46382 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
  • Loading branch information
hawkowl committed Dec 2, 2015
1 parent 496c987 commit 8f067df
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions twisted/internet/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,10 +994,9 @@ def __init__(self, reactor, executable, args, environment, path, proto,
_BaseProcess.__init__(self, proto)

if isinstance(usePTY, (tuple, list)):
masterfd, slavefd, ttyname = usePTY
masterfd, slavefd, _ = usePTY
else:
masterfd, slavefd = pty.openpty()
ttyname = os.ttyname(slavefd)

try:
self._fork(path, uid, gid, executable, args, environment,
Expand Down
2 changes: 1 addition & 1 deletion twisted/news/nntp.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def do_POST(self):
def _doingPost(self, line):
if line == '.':
self.inputHandler = None
group, article = self.currentGroup, self.message
article = self.message
self.message = ''

defer = self.factory.backend.postRequest(article)
Expand Down
2 changes: 1 addition & 1 deletion twisted/python/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

_EXTRA_OPTIONS = dict(
dev=['twistedchecker >= 0.4.0',
'pyflakes >= 0.9.2',
'pyflakes >= 1.0.0',
'twisted-dev-tools >= 0.0.2',
'python-subunit',
'sphinx >= 1.3.1',
Expand Down
2 changes: 1 addition & 1 deletion twisted/python/test/test_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_extrasRequiresDevDeps(self):
"""
deps = _EXTRAS_REQUIRE['dev']
self.assertIn('twistedchecker >= 0.4.0', deps)
self.assertIn('pyflakes >= 0.9.2', deps)
self.assertIn('pyflakes >= 1.0.0', deps)
self.assertIn('twisted-dev-tools >= 0.0.2', deps)
self.assertIn('python-subunit', deps)
self.assertIn('sphinx >= 1.3.1', deps)
Expand Down
6 changes: 2 additions & 4 deletions twisted/python/test/test_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from twisted.python.filepath import FilePath
from twisted.python.versions import Version

from twisted.web.microdom import parseXMLString
from twisted.python._release import (
_changeVersionInFile, getNextVersion, findTwistedProjects, replaceInFile,
replaceProjectVersion, Project, generateVersionFileData,
Expand Down Expand Up @@ -1417,9 +1416,8 @@ def createFakeSphinxProject(self):

def verifyFileExists(self, fileDir, fileName):
"""
Helper which verifies that C{fileName} exists in C{fileDir}, has some
content, and that the content is parseable by L{parseXMLString} if the
file extension indicates that it should be html.
Helper which verifies that C{fileName} exists in C{fileDir} and it has
some content.
@param fileDir: A path to a directory.
@type fileDir: L{FilePath}
Expand Down
Empty file added twisted/topfiles/8122.misc
Empty file.

0 comments on commit 8f067df

Please sign in to comment.