diff options
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): |