[py3] Fixed slow path through file_move_safe

This path is taken on Windows.
This commit is contained in:
Karen Tracey 2012-08-18 15:44:09 -04:00
parent 1758bf76e4
commit e99293250e
1 changed files with 1 additions and 1 deletions

View File

@ -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: