Skip to content

Commit

Permalink
Replace lambda with function
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Jun 21, 2020
1 parent dc7e36b commit 078dc6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/twisted/test/test_policies.py
Expand Up @@ -357,7 +357,8 @@ def test_breakReferenceCycle(self):


class WrappingFactory(policies.WrappingFactory):
protocol = lambda s, f, p: p
def protocol(self, f, p):
return p

def startFactory(self):
policies.WrappingFactory.startFactory(self)
Expand Down

0 comments on commit 078dc6b

Please sign in to comment.