mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 20:40:08 -06:00
Adjust feature detection for 2.7.15
This commit is contained in:
@@ -52,7 +52,11 @@ def broken_deep_listdir(): # pragma: no cover (platform specific)
|
||||
os.listdir(str('\\\\?\\') + os.path.abspath(str('.')))
|
||||
except OSError:
|
||||
return True
|
||||
else:
|
||||
try:
|
||||
os.listdir(b'\\\\?\C:' + b'\\' * 300)
|
||||
except TypeError:
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user