summaryrefslogtreecommitdiff
path: root/isort/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'isort/settings.py')
-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']: