summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-03-05 23:07:05 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-05 23:07:05 -0800
commitea62412a99db552406f2652874f0acfec3d2af7a (patch)
tree1ce244d762c5a06e360d2a0b8b6e2cc2ea83ee56
parent175b7f57442ca5674d3dde010c2300880a3ba0d2 (diff)
downloadisort-ea62412a99db552406f2652874f0acfec3d2af7a.tar.gz
Fix filename replace
-rw-r--r--isort/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/settings.py b/isort/settings.py
index d6dba5e2..4ef68f1a 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -324,7 +324,7 @@ def should_skip(filename, config, path=''):
if normalized_path[1:2] == ':':
normalized_path = normalized_path[2:]
- if config['safety_excludes'] and safety_exclude_re.search('/' + filename('\\', '/') + '/'):
+ if config['safety_excludes'] and safety_exclude_re.search('/' + filename.replace('\\', '/') + '/'):
return True
for skip_path in config['skip']: