mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
359be1c870
File operations always raise a ENOENT error when a file doesn't exist. Checking the file exists before the operation adds a race condition condition where the file could be removed between operations. As the operation already raises an error on a missing file, avoid this race and avoid checking the file exists twice. Instead only check a file exists by catching the ENOENT error. |
||
---|---|---|
.. | ||
apps | ||
project | ||
urls | ||
__init__.py | ||
cases.py | ||
settings.py | ||
storage.py | ||
test_finders.py | ||
test_forms.py | ||
test_liveserver.py | ||
test_management.py | ||
test_storage.py | ||
test_templatetags.py | ||
test_views.py |