summaryrefslogtreecommitdiff
path: root/isort
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2019-03-10 22:13:49 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-10 22:57:34 -0700
commite3fb26bd80b7e2c3f94ca95e867ad1dfe0d92370 (patch)
tree1780c1cf593b1853cc815999b1ac6ce9e6ae201f /isort
parent283c5501de70a2082a533a73c07c45cf84bd9e17 (diff)
downloadisort-e3fb26bd80b7e2c3f94ca95e867ad1dfe0d92370.tar.gz
Merge pull request #898 from timothycrosley/feature/fix-issue-811
Fix handling of whitespace character
Diffstat (limited to 'isort')
-rw-r--r--isort/isort.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isort/isort.py b/isort/isort.py
index 8968d5df..5757c009 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -192,8 +192,8 @@ class SortImports(object):
check_output = self.output
check_against = file_contents
if self.config['ignore_whitespace']:
- check_output = check_output.replace(self.line_separator, "").replace(" ", "")
- check_against = check_against.replace(self.line_separator, "").replace(" ", "")
+ check_output = check_output.replace(self.line_separator, "").replace(" ", "").replace("\x0c", "")
+ check_against = check_against.replace(self.line_separator, "").replace(" ", "").replace("\x0c", "")
if check_output.strip() == check_against.strip():
if self.config['verbose']: