Replace → with ->

Apparently Windows still isn't using UTF-8 by default, and fails when
handling these log entries.
This commit is contained in:
Sybren A. Stüvel 2019-01-02 14:32:10 +01:00
parent 5a41167a09
commit 772a5a1b1c
3 changed files with 5 additions and 5 deletions

View File

@ -517,7 +517,7 @@ class Packer:
target: pathlib.Path, target: pathlib.Path,
may_move=False): may_move=False):
if self.noop: if self.noop:
print('%s %s' % (asset_path, target)) print('%s -> %s' % (asset_path, target))
self._file_count += 1 self._file_count += 1
return return
@ -541,6 +541,6 @@ class Packer:
with infopath.open('w') as infofile: with infopath.open('w') as infofile:
print('This is a Blender Asset Tracer pack.', file=infofile) print('This is a Blender Asset Tracer pack.', file=infofile)
print('Start by opening the following blend file:', file=infofile) print('Start by opening the following blend file:', file=infofile)
print(' %s' % self._output_path.relative_to(self.target), file=infofile) print(' %s' % self._output_path.relative_to(self.target).as_posix(), file=infofile)
self._file_transferer.queue_move(infopath, self.target / infoname) self._file_transferer.queue_move(infopath, self.target / infoname)

View File

@ -139,7 +139,7 @@ class FileCopier(transfer.FileTransferer):
if self._error.is_set() or self._abort.is_set(): if self._error.is_set() or self._abort.is_set():
raise AbortTransfer() raise AbortTransfer()
log.info('%s %s %s', act.name, src, dst) log.info('%s %s -> %s', act.name, src, dst)
tfunc(src, dst) tfunc(src, dst)
except AbortTransfer: except AbortTransfer:
# either self._error or self._abort is already set. We just have to # either self._error or self._abort is already set. We just have to
@ -210,7 +210,7 @@ class FileCopier(transfer.FileTransferer):
self.files_skipped += 1 self.files_skipped += 1
return return
log.debug('Copying %s %s', srcpath, dstpath) log.debug('Copying %s -> %s', srcpath, dstpath)
self._copy(srcpath, dstpath) self._copy(srcpath, dstpath)
self.already_copied.add((srcpath, dstpath)) self.already_copied.add((srcpath, dstpath))

View File

@ -153,7 +153,7 @@ class BlockUsage:
self._abspath = as_path.resolve() self._abspath = as_path.resolve()
except FileNotFoundError: except FileNotFoundError:
self._abspath = as_path self._abspath = as_path
log.info('Resolving %s rel to %s %s', log.info('Resolving %s rel to %s -> %s',
self.asset_path, self.block.bfile.filepath, self._abspath) self.asset_path, self.block.bfile.filepath, self._abspath)
else: else:
log.info('Reusing abspath %s', self._abspath) log.info('Reusing abspath %s', self._abspath)