diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-08 09:19:25 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-08 09:19:25 +1200 |
commit | db11fe0087776c2bf5d95f5aeb751c6c35d67f4b (patch) | |
tree | 1aab054770dee86506a1897093dde2d35489a0de /netlib | |
parent | ba466dbb358eba223c49fbe602a667aa1a3c7459 (diff) | |
parent | eb680e7764ec902518bc66e4d5c7667326ed5811 (diff) | |
download | mitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.tar.gz mitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.tar.bz2 mitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.zip |
Merge branch 'master' into beautiful-json
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/strutils.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/netlib/strutils.py b/netlib/strutils.py index 03b371f5..5ad41c7e 100644 --- a/netlib/strutils.py +++ b/netlib/strutils.py @@ -120,13 +120,7 @@ def isMostlyBin(s): def isXML(s): - for i in s: - if i in "\n \t": - continue - elif i == "<": - return True - else: - return False + return s.strip().startswith("<") def clean_hanging_newline(t): |