diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 18:05:09 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 18:05:09 +0200 |
commit | bfc889d29afdd902b5df30336ff73e484a3592fc (patch) | |
tree | 9f0d1cc12258be9ba8998fae688a6de2a8b87b99 /libpathod/pathod.py | |
parent | ce0e2b12b4ca26143af3bbaa7c0ff7aa6f011d39 (diff) | |
download | mitmproxy-bfc889d29afdd902b5df30336ff73e484a3592fc.tar.gz mitmproxy-bfc889d29afdd902b5df30336ff73e484a3592fc.tar.bz2 mitmproxy-bfc889d29afdd902b5df30336ff73e484a3592fc.zip |
fix prospector code smells
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r-- | libpathod/pathod.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 001ab085..695f62a5 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -171,7 +171,7 @@ class PathodHandler(tcp.BaseHandler): self.wfile.flush() if not self.server.ssloptions.not_after_connect: try: - cert, key, chain_file = self.server.ssloptions.get_cert( + cert, key, chain_file_ = self.server.ssloptions.get_cert( connect[0] ) self.convert_to_ssl( @@ -310,7 +310,7 @@ class PathodHandler(tcp.BaseHandler): anchor_gen = iter([self.make_http_error_response( "Spec Error", "HTTP/2 only supports request/response with the craft anchor point: %s" % - self.server.craftanchor + self.server.craftanchor )]) @@ -576,9 +576,9 @@ class Pathod(tcp.TCPServer): with lock: self.log = [] - def log_by_id(self, id): + def log_by_id(self, identifier): for i in self.log: - if i["id"] == id: + if i["id"] == identifier: return i def get_log(self): |