summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 00:18:04 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 00:18:04 -0800
commitcf0190af239b33f86b5dea086ece6640926c7ca5 (patch)
treeb599119a88b43eeba17b0e1d6d14cedca51a425f
parent0c39fa476966f279862abf634c5d1ea1800a887c (diff)
downloadisort-cf0190af239b33f86b5dea086ece6640926c7ca5.tar.gz
Attempt to fix windows issue by avoiding use of os dependant fifo check
-rw-r--r--isort/settings.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/isort/settings.py b/isort/settings.py
index 1a907e61..261eb64e 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -29,7 +29,6 @@ import io
import os
import posixpath
import re
-import stat
import sys
import warnings
from collections import namedtuple
@@ -337,7 +336,7 @@ def should_skip(filename, config, path='/'):
if fnmatch.fnmatch(filename, glob):
return True
- if stat.S_ISFIFO(os.stat(normalized_path).st_mode):
+ if not (os.path.isfile(normalized_path) or os.path.isdir(normalized_path) or os.path.islink(normalized_path)):
return True
return False