From 63321878cd51fa44f4b793ee7a445901daeba884 Mon Sep 17 00:00:00 2001 From: dalepotter Date: Tue, 11 Jul 2017 17:34:29 +0100 Subject: [PATCH] Fix linting pylint suggests adding 4 spaces in multi-line if statement. This may be a false positive bug though - see: https://github.com/PyCQA/pylint/issues/289 --- iati/core/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iati/core/data.py b/iati/core/data.py index e8077b10..f7f644a9 100644 --- a/iati/core/data.py +++ b/iati/core/data.py @@ -81,7 +81,7 @@ def xml_str(self, value): # Convert the input to bytes, as etree.fromstring works most consistently with bytes objects, especially if an XML encoding declaration has been used. if (isinstance(value_stripped, str) - and sys.version_info.major > 2): # Python v2 treats strings as byte objects by default + and sys.version_info.major > 2): # Python v2 treats strings as byte objects by default value_stripped_bytes = value_stripped.encode() else: value_stripped_bytes = value_stripped