From 033e5ac4a0dda5a9e7c91efc46c412efb55a22e0 Mon Sep 17 00:00:00 2001 From: Anson Date: Sat, 26 Jun 2021 20:00:38 +0800 Subject: [PATCH] Fix SyntaxWarning in recovery.py Fixes: recovery.py:119: SyntaxWarning: "is" with a literal. Did you mean "=="? if((fileCounter % onePercentFiles) is 0): --- recovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recovery.py b/recovery.py index bf88598..459e663 100755 --- a/recovery.py +++ b/recovery.py @@ -116,7 +116,7 @@ for root, dirs, files in os.walk(source, topdown=False): shutil.copy2(sourcePath, destinationFile) fileCounter += 1 - if((fileCounter % onePercentFiles) is 0): + if((fileCounter % onePercentFiles) == 0): log(str(fileCounter) + " / " + totalAmountToCopy + " processed.") log("start special file treatment")