summaryrefslogtreecommitdiff
path: root/django/core/files/move.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/files/move.py')
-rw-r--r--django/core/files/move.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/files/move.py b/django/core/files/move.py
index 3349fc22e7..4778228ccd 100644
--- a/django/core/files/move.py
+++ b/django/core/files/move.py
@@ -79,7 +79,7 @@ def file_move_safe(old_file_name, new_file_name, chunk_size = 1024*64, allow_ove
try:
os.remove(old_file_name)
- except OSError, e:
+ except OSError as e:
# Certain operating systems (Cygwin and Windows)
# fail when deleting opened files, ignore it. (For the
# systems where this happens, temporary files will be auto-deleted