mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Satisfy flake8
This commit is contained in:
parent
6ecc6da486
commit
e8290a0eb4
@ -72,7 +72,8 @@ class Heading:
|
||||
return opt
|
||||
|
||||
|
||||
_neg = lambda: False
|
||||
def _neg(*args):
|
||||
return False
|
||||
|
||||
|
||||
class Option:
|
||||
|
@ -418,12 +418,16 @@ class FlowList(object):
|
||||
return
|
||||
|
||||
|
||||
def _pos(*args):
|
||||
return True
|
||||
|
||||
|
||||
class FlowView(FlowList):
|
||||
|
||||
def __init__(self, store, filt=None):
|
||||
super(FlowView, self).__init__()
|
||||
if not filt:
|
||||
filt = lambda flow: True
|
||||
filt = _pos
|
||||
self._build(store, filt)
|
||||
|
||||
self.store = store
|
||||
|
@ -2,11 +2,6 @@ from __future__ import absolute_import, print_function, division
|
||||
|
||||
import re
|
||||
|
||||
try:
|
||||
from collections.abc import MutableMapping
|
||||
except ImportError: # pragma: no cover
|
||||
from collections import MutableMapping # Workaround for Python < 3.3
|
||||
|
||||
import six
|
||||
from ..multidict import MultiDict
|
||||
from ..utils import always_bytes
|
||||
|
Loading…
Reference in New Issue
Block a user