Stop sub-classing object (#8249)

This commit is contained in:
Patrick Cloke
2020-09-04 06:54:56 -04:00
committed by GitHub
parent 9f8abdcc38
commit c619253db8
168 changed files with 293 additions and 292 deletions

View File

@@ -24,7 +24,7 @@ from twisted.web.client import Agent, readBody
from twisted.web.http_headers import Headers
class HttpClient(object):
class HttpClient:
""" Interface for talking json over http
"""
@@ -169,7 +169,7 @@ class TwistedHttpClient(HttpClient):
return d
class _RawProducer(object):
class _RawProducer:
def __init__(self, data):
self.data = data
self.body = data
@@ -186,7 +186,7 @@ class _RawProducer(object):
pass
class _JsonProducer(object):
class _JsonProducer:
""" Used by the twisted http client to create the HTTP body from json
"""