netlib.human -> mitmproxy.utils.human

This commit is contained in:
Aldo Cortesi 2016-10-20 09:45:18 +13:00
parent 069119364d
commit 1407830280
13 changed files with 15 additions and 13 deletions

View File

@ -8,7 +8,7 @@ from mitmproxy import contentviews
from mitmproxy import ctx
from mitmproxy import exceptions
from mitmproxy import flowfilter
from netlib import human
from mitmproxy.utils import human
from netlib import strutils

View File

@ -5,7 +5,7 @@ from mitmproxy import exceptions
from mitmproxy import flowfilter
from mitmproxy import options
from mitmproxy import platform
from netlib import human
from mitmproxy.utils import human
from netlib import tcp
from mitmproxy import version

View File

@ -10,7 +10,7 @@ import netlib
from mitmproxy.utils import lrucache
from mitmproxy.tools.console import signals
from mitmproxy import export
from netlib import human
from mitmproxy.utils import human
try:
import pyperclip

View File

@ -1,7 +1,7 @@
import urwid
from mitmproxy.tools.console import common, searchable
from netlib import human
from mitmproxy.utils import human
def maybe_timestamp(base, attr):

View File

@ -6,7 +6,7 @@ import netlib.http.url
from mitmproxy.tools.console import common
from mitmproxy.tools.console import pathedit
from mitmproxy.tools.console import signals
from netlib import human
from mitmproxy.utils import human
class ActionBar(urwid.WidgetWrap):

View File

@ -1,6 +1,6 @@
import time
from email.utils import parsedate_tz, formatdate, mktime_tz
from netlib import human
from mitmproxy.utils import human
from netlib import multidict
from netlib.http import cookies
from netlib.http import headers as nheaders

View File

@ -5,7 +5,7 @@ import io
from netlib import tcp
from netlib import strutils
from netlib import utils
from netlib import human
from mitmproxy.utils import human
from .masker import Masker

View File

@ -5,7 +5,7 @@ import functools
import pyparsing as pp
from netlib import strutils
from netlib import human
from mitmproxy.utils import human
from . import generators, exceptions

View File

@ -1,6 +1,7 @@
import time
from netlib import strutils, human
from netlib import strutils
from mitmproxy.utils import human
def write_raw(fp, lines, timestamp=True):

View File

@ -5,7 +5,7 @@ import os.path
import re
from netlib import tcp
from netlib import human
from mitmproxy.utils import human
from mitmproxy import version
from . import pathod

View File

@ -1,5 +1,6 @@
import time
from netlib import human, tutils
from mitmproxy.utils import human
from netlib import tutils
def test_format_timestamp():

View File

@ -1,8 +1,8 @@
from mitmproxy import utils
from mitmproxy.utils import lrucache
def test_LRUCache():
cache = utils.LRUCache(2)
cache = lrucache.LRUCache(2)
class Foo:
ran = False