diff options
Diffstat (limited to 'django/core/files/storage/filesystem.py')
| -rw-r--r-- | django/core/files/storage/filesystem.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/files/storage/filesystem.py b/django/core/files/storage/filesystem.py index bf2b9caad4..1bd9aa0a6c 100644 --- a/django/core/files/storage/filesystem.py +++ b/django/core/files/storage/filesystem.py @@ -129,11 +129,11 @@ class FileSystemStorage(Storage, StorageSettingsMixin): ) # RemovedInDjango60Warning: when the deprecation ends, replace with: # if self._allow_overwrite: - # open_flags = open_flags & ~os.O_EXCL + # open_flags = open_flags & ~os.O_EXCL | os.O_TRUNC if self.OS_OPEN_FLAGS != open_flags: open_flags = self.OS_OPEN_FLAGS elif self._allow_overwrite: - open_flags = open_flags & ~os.O_EXCL + open_flags = open_flags & ~os.O_EXCL | os.O_TRUNC fd = os.open(full_path, open_flags, 0o666) _file = None try: |
