Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
exarkun committed Apr 30, 2019
1 parent 8a23b4e commit 5f476ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/twisted/internet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ def _continueFiring(self, ignored):
log.err()



@implementer(IReactorPluggableNameResolver, IReactorPluggableResolver)
class PluggableResolverMixin(object):
"""
Expand Down Expand Up @@ -626,7 +627,7 @@ def getWriters(self):


# IReactorCore
def resolve(self, name, timeout = (1, 3, 11, 45)):
def resolve(self, name, timeout=(1, 3, 11, 45)):
"""Return a Deferred that will resolve a hostname.
"""
if not name:
Expand Down
4 changes: 3 additions & 1 deletion src/twisted/internet/test/test_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
)



class DeterministicThreadPool(ThreadPool, object):
"""
Create a deterministic L{ThreadPool} object.
Expand Down Expand Up @@ -573,7 +574,8 @@ def test_interfaceCompliance(self):

def test_installingOldStyleResolver(self):
"""
L{PluggableResolverMixin} will wrap an L{IResolverSimple} in a complexifier.
L{PluggableResolverMixin} will wrap an L{IResolverSimple} in a
complexifier.
"""
reactor = PluggableResolverMixin()
it = SillyResolverSimple()
Expand Down

0 comments on commit 5f476ba

Please sign in to comment.