Skip to content

Commit

Permalink
Merge pull request #404 from cjwatson/remove-defer-returnValue
Browse files Browse the repository at this point in the history
Stop using twisted.internet.defer.returnValue
  • Loading branch information
cjwatson authored Dec 10, 2024
2 parents 132fd9c + dd001ae commit f0294ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/testing_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def make_a_request(treq):
else:
message = yield response.text()
raise Exception("Got an error from the server: {}".format(message))
defer.returnValue(result)
return result


class MakeARequestTests(SynchronousTestCase):
Expand Down

0 comments on commit f0294ad

Please sign in to comment.