From 730f3148391666c5cd3dfa333d0f8927536c0497 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 3 Jan 2019 14:40:50 +0100 Subject: [PATCH] Undefined name: to --> 'to' ``` ./src/Tools/fcbt/FileTools.py:47:50: F821 undefined name 'to' print('Error copying', pathFrom, to, pathTo, '--skipped') ^ ./src/Tools/fcbt/FileTools.py:86:54: F821 undefined name 'to' print('Error copying', pathFrom, to, pathTo, '--skipped') ^ ``` --- src/Tools/fcbt/FileTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tools/fcbt/FileTools.py b/src/Tools/fcbt/FileTools.py index 21607e22c7..c16344b8a9 100644 --- a/src/Tools/fcbt/FileTools.py +++ b/src/Tools/fcbt/FileTools.py @@ -44,7 +44,7 @@ def cpall(dirFrom, dirTo): cpfile(pathFrom, pathTo) fcount = fcount+1 except: - print('Error copying', pathFrom, to, pathTo, '--skipped') + print('Error copying', pathFrom, 'to', pathTo, '--skipped') print(sys.exc_type, sys.exc_value) else: if verbose: print('copying dir', pathFrom, 'to', pathTo) @@ -83,7 +83,7 @@ def cpallWithFilter(dirFrom, dirTo,MatchList): cpfile(pathFrom, pathTo) fcount = fcount+1 except: - print('Error copying', pathFrom, to, pathTo, '--skipped') + print('Error copying', pathFrom, 'to', pathTo, '--skipped') print(sys.exc_type, sys.exc_value) else: if verbose: print('copying dir', pathFrom, 'to', pathTo)