Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
pylint suggests adding 4 spaces in multi-line if statement.
This may be a false positive bug though - see:
pylint-dev/pylint#289
  • Loading branch information
dalepotter committed Jul 11, 2017
1 parent e64fe57 commit 6332187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iati/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6332187

Please sign in to comment.