diff options
Diffstat (limited to 'django/core/files/storage/filesystem.py')
| -rw-r--r-- | django/core/files/storage/filesystem.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/core/files/storage/filesystem.py b/django/core/files/storage/filesystem.py index 428ae61b40..9592bff008 100644 --- a/django/core/files/storage/filesystem.py +++ b/django/core/files/storage/filesystem.py @@ -104,8 +104,9 @@ class FileSystemStorage(Storage, StorageSettingsMixin): # This is a normal uploadedfile that we can stream. else: - # The combination of O_CREAT and O_EXCL makes os.open() raises an - # OSError if the file already exists before it's opened. + # The combination of O_CREAT and O_EXCL makes os.open() + # raises an OSError if the file already exists before it's + # opened. open_flags = ( os.O_WRONLY | os.O_CREAT |
