mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Py3: Use global next() instead of iterator method
This commit is contained in:
parent
0280af9522
commit
6b03df2633
@ -10,11 +10,11 @@ import tutils
|
||||
|
||||
|
||||
def parse_request(s):
|
||||
return language.parse_pathoc(s, True).next()
|
||||
return next(language.parse_pathoc(s, True))
|
||||
|
||||
|
||||
def parse_response(s):
|
||||
return language.parse_pathod(s, True).next()
|
||||
return next(language.parse_pathod(s, True))
|
||||
|
||||
|
||||
def default_settings():
|
||||
|
Loading…
Reference in New Issue
Block a user