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) expr = pp.OneOrMore(expr)
return expr.setParseAction(lambda x: FAnd(x) if len(x) != 1 else x) return expr.setParseAction(lambda x: FAnd(x) if len(x) != 1 else x)
bnf = _make() bnf = _make()
TFilter = Callable[[flow.Flow], bool] TFilter = Callable[[flow.Flow], bool]

View File

@ -251,6 +251,7 @@ def make_connect_response(http_version):
b"", b"",
) )
expect_continue_response = HTTPResponse( expect_continue_response = HTTPResponse(
b"HTTP/1.1", 100, b"Continue", http.Headers(), b"" 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. # if we take the last part.
return values[-1] return values[-1]
SetCookie = collections.namedtuple("SetCookie", ["value", "attrs"]) SetCookie = collections.namedtuple("SetCookie", ["value", "attrs"])

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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