From 1ae491415c64f881c784ba236cb08918456d2857 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sat, 25 Jan 2020 18:30:58 +0100 Subject: [PATCH] Fix 'pw' variable name in error handling pylint complained: crypto.py:840:40: E0602: Undefined variable 'password' (undefined-variable) --- deltatar/crypto.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deltatar/crypto.py b/deltatar/crypto.py index cba2c35..9140454 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -837,7 +837,7 @@ def scrypt_hashsource (pw, ins): pw = str.encode (pw) elif isinstance (pw, bytes) is False: raise InvalidParameter ("password must be a string, not %s" - % type (password)) + % type (pw)) if isinstance (ins, io.BufferedReader) is False and \ isinstance (ins, io.FileIO) is False: raise InvalidParameter ("file to hash must be opened in “binary” mode") -- 1.7.1