Create mitmproxy.utils hierarchy

- Add mitproxy.utils.lrucache, mitproxy.utils.data
This commit is contained in:
Aldo Cortesi
2016-10-20 09:35:55 +13:00
parent 7440232f60
commit 069119364d
16 changed files with 69 additions and 67 deletions

View File

@@ -1,6 +1,6 @@
import os
import sys
import netlib.utils
from mitmproxy.utils import data as mdata
class MemBool:
@@ -17,7 +17,8 @@ class MemBool:
return bool(v)
data = netlib.utils.Data(__name__)
# FIXME: change this name
data = mdata.Data(__name__)
def daemonize(stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): # pragma: no cover