Remove fallback for people running from source without up-to-date binaries

This commit is contained in:
Kovid Goyal 2018-01-28 08:01:40 +05:30
parent 117cd4ee13
commit 75e59cb3a8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -482,13 +482,7 @@ def nlinks_file(path):
if iswindows:
def rename_file(a, b):
move_file = getattr(plugins['winutil'][0], 'move_file', None)
if move_file is None:
import win32file
def mf_impl(a, b):
win32file.MoveFileEx(a, b, win32file.MOVEFILE_REPLACE_EXISTING|win32file.MOVEFILE_WRITE_THROUGH)
move_file = mf_impl
move_file = plugins['winutil'][0].move_file
if isinstance(a, bytes):
a = a.decode('mbcs')
if isinstance(b, bytes):