aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/strutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/strutils.py')
-rw-r--r--netlib/strutils.py2
1 files changed, 1 insertions, 1 deletions
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):