Merge pull request #1753 from mitmproxy/update-dependencies

Update Dependencies
This commit is contained in:
Thomas Kriechbaumer 2016-11-18 13:02:58 +01:00 committed by GitHub
commit d6cfd93357
14 changed files with 21 additions and 4 deletions

View File

@ -482,9 +482,9 @@ def _make():
])
expr = pp.OneOrMore(expr)
return expr.setParseAction(lambda x: FAnd(x) if len(x) != 1 else x)
bnf = _make()
TFilter = Callable[[flow.Flow], bool]

View File

@ -251,6 +251,7 @@ def make_connect_response(http_version):
b"",
)
expect_continue_response = HTTPResponse(
b"HTTP/1.1", 100, b"Continue", http.Headers(), b""
)

View File

@ -42,6 +42,7 @@ class CookieAttrs(multidict.MultiDict):
# if we take the last part.
return values[-1]
SetCookie = collections.namedtuple("SetCookie", ["value", "attrs"])

View File

@ -12,6 +12,7 @@ class SocksError(Exception):
super().__init__(message)
self.code = code
VERSION = bidi.BiDi(
SOCKS4=0x04,
SOCKS5=0x05

View File

@ -106,6 +106,7 @@ class SSLKeyLogger:
return SSLKeyLogger(filename)
return False
log_ssl_key = SSLKeyLogger.create_logfun(
os.getenv("MITMPROXY_SSLKEYLOGFILE") or os.getenv("SSLKEYLOGFILE"))

View File

@ -119,6 +119,7 @@ def fcol(s, attr):
)
)
if urwid.util.detected_encoding:
SYMBOL_REPLAY = u"\u21ba"
SYMBOL_RETURN = u"\u2190"

View File

@ -41,6 +41,8 @@ def _mkhelp():
]
text.extend(common.format_keyvals(keys, key="key", val="text", indent=4))
return text
help_context = _mkhelp()
footer = [

View File

@ -90,6 +90,8 @@ def _mkhelp():
]
text.extend(common.format_keyvals(keys, key="key", val="text", indent=4))
return text
help_context = _mkhelp()
footer = [
@ -120,6 +122,7 @@ class FlowViewHeader(urwid.WidgetWrap):
hostheader=self.master.options.showhost
)
TAB_REQ = 0
TAB_RESP = 1

View File

@ -21,6 +21,8 @@ def _mkhelp():
]
text.extend(common.format_keyvals(keys, key="key", val="text", indent=4))
return text
help_context = _mkhelp()

View File

@ -17,6 +17,8 @@ def _mkhelp():
]
text.extend(common.format_keyvals(keys, key="key", val="text", indent=4))
return text
help_context = _mkhelp()

View File

@ -11,6 +11,7 @@ def add_log(e, level):
level=level
)
# Show a status message in the action bar
status_message = blinker.Signal()

View File

@ -78,7 +78,7 @@ setup(
"pyOpenSSL>=16.0, <17.0",
"pyparsing>=2.1.3, <2.2",
"pyperclip>=1.5.22, <1.6",
"requests>=2.9.1, <2.12",
"requests>=2.9.1, <3",
"tornado>=4.3, <4.5",
"urwid>=1.3.1, <1.4",
"watchdog>=0.8.3, <0.9",
@ -92,7 +92,7 @@ setup(
':sys_platform != "win32"': [
],
'dev': [
"flake8>=2.6.2, <3.1",
"flake8>=2.6.2, <3.3",
"mypy-lang>=0.4.5, <0.5",
"rstcheck>=2.2, <3.0",
"tox>=2.3, <3",

View File

@ -51,5 +51,6 @@ def main(profiler, clock_type, concurrency):
stats.save(outfile, type='callgrind')
print("Done.")
if __name__ == '__main__':
main()

View File

@ -19,5 +19,6 @@ class service(socketserver.BaseRequestHandler):
class ThreadedTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
pass
server = ThreadedTCPServer(('', 1520), service)
server.serve_forever()