mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 05:14:29 +08:00
Remove scandir compatibility
This commit is contained in:
@@ -14,7 +14,6 @@ try:
|
||||
except:
|
||||
import pickle
|
||||
|
||||
from parso._compatibility import scandir
|
||||
from parso.file_io import FileIO
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
@@ -232,7 +231,7 @@ def clear_inactive_cache(
|
||||
version_path = os.path.join(cache_path, version_path)
|
||||
if not os.path.isdir(version_path):
|
||||
continue
|
||||
for file in scandir(version_path):
|
||||
for file in os.scandir(version_path):
|
||||
if (
|
||||
file.stat().st_atime + _CACHED_FILE_MAXIMUM_SURVIVAL
|
||||
<= time.time()
|
||||
|
||||
Reference in New Issue
Block a user