From 00dce240150595e41719e512f1b156103c3c9c31 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 7 Jul 2016 18:02:59 -0700 Subject: tests++ --- netlib/strutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netlib/strutils.py') diff --git a/netlib/strutils.py b/netlib/strutils.py index cda70651..7d49e56e 100644 --- a/netlib/strutils.py +++ b/netlib/strutils.py @@ -119,7 +119,7 @@ def is_mostly_bin(s): return sum( i < 9 or 13 < i < 32 or 126 < i for i in six.iterbytes(s[:100]) - ) > 30 + ) / len(s[:100]) > 0.3 def is_xml(s): -- cgit v1.2.3