diff options
author | Karen Tracey <kmtracey@gmail.com> | 2012-08-18 15:44:09 -0400 |
---|---|---|
committer | Karen Tracey <kmtracey@gmail.com> | 2012-08-18 15:44:09 -0400 |
commit | e99293250ed9d0ae471faff240bc2e9910a1ec6f (patch) | |
tree | 5b82dc0192f4813d2e534ac7b03e4c8f5e415842 /django/core/files/move.py | |
parent | 1758bf76e4a108ef65a6d5d30196b005e4b302e7 (diff) | |
download | django-e99293250ed9d0ae471faff240bc2e9910a1ec6f.tar.gz |
[py3] Fixed slow path through file_move_safe
This path is taken on Windows.
Diffstat (limited to 'django/core/files/move.py')
-rw-r--r-- | django/core/files/move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/files/move.py b/django/core/files/move.py index f9060fd3d8..3af02634fe 100644 --- a/django/core/files/move.py +++ b/django/core/files/move.py @@ -66,7 +66,7 @@ def file_move_safe(old_file_name, new_file_name, chunk_size = 1024*64, allow_ove try: locks.lock(fd, locks.LOCK_EX) current_chunk = None - while current_chunk != '': + while current_chunk != b'': current_chunk = old_file.read(chunk_size) os.write(fd, current_chunk) finally: |