mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-02 11:06:02 -04:00
Fix pep8 and pyflakes warnings
This commit is contained in:
parent
8f8c484bc6
commit
610c2ea131
6 changed files with 21 additions and 12 deletions
|
@ -32,15 +32,16 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
class SimpleHttpClient(object):
|
||||
"""
|
||||
A simple, no-frills HTTP client with methods that wrap up common ways of using HTTP in Matrix
|
||||
A simple, no-frills HTTP client with methods that wrap up common ways of
|
||||
using HTTP in Matrix
|
||||
"""
|
||||
def __init__(self, hs):
|
||||
self.hs = hs
|
||||
# The default context factory in Twisted 14.0.0 (which we require) is
|
||||
# BrowserLikePolicyForHTTPS which will do regular cert validation 'like a browser'
|
||||
# BrowserLikePolicyForHTTPS which will do regular cert validation
|
||||
# 'like a browser'
|
||||
self.agent = Agent(reactor)
|
||||
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def post_urlencoded_get_json(self, uri, args={}):
|
||||
logger.debug("post_urlencoded_get_json args: %s", args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue