mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Move human-friendly format functions to netlib.human, remove redundant implementations
This commit is contained in:
@@ -4,7 +4,7 @@ import os
|
||||
import os.path
|
||||
import re
|
||||
|
||||
from netlib import tcp
|
||||
from netlib import tcp, human
|
||||
from . import pathod, version, utils
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ def args_pathod(argv, stdout_=sys.stdout, stderr_=sys.stderr):
|
||||
sizelimit = None
|
||||
if args.sizelimit:
|
||||
try:
|
||||
sizelimit = utils.parse_size(args.sizelimit)
|
||||
sizelimit = human.parse_size(args.sizelimit)
|
||||
except ValueError as v:
|
||||
return parser.error(v)
|
||||
args.sizelimit = sizelimit
|
||||
|
||||
Reference in New Issue
Block a user