From b04310f07d182187d1526d18b3a11e48612b1183 Mon Sep 17 00:00:00 2001 From: NiJia Lin Date: Fri, 3 Feb 2023 23:05:03 +0800 Subject: [PATCH] Fix typo ASIS: picuter TOBE: picture --- amzqr/amzqr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amzqr/amzqr.py b/amzqr/amzqr.py index 35a506e..f6a7d70 100755 --- a/amzqr/amzqr.py +++ b/amzqr/amzqr.py @@ -35,7 +35,7 @@ def run(words, version=1, level='H', picture=None, colorized=False, contrast=1.0 if not isinstance(picture, str) or not os.path.isfile(picture) or picture[-4:] not in ('.jpg','.png','.bmp','.gif'): raise ValueError("Wrong picture! Input a filename that exists and be tailed with one of {'.jpg', '.png', '.bmp', '.gif'}!") if picture[-4:] == '.gif' and save_name and save_name[-4:] != '.gif': - raise ValueError('Wrong save_name! If the picuter is .gif format, the output filename should be .gif format, too!') + raise ValueError('Wrong save_name! If the picture is .gif format, the output filename should be .gif format, too!') if not isinstance(colorized, bool): raise ValueError('Wrong colorized! Input a bool-type value!') if not isinstance(contrast, float): @@ -129,4 +129,4 @@ def combine(ver, qr_name, bg_name, colorized, contrast, brightness, save_dir, sa finally: import shutil if os.path.exists(tempdir): - shutil.rmtree(tempdir) \ No newline at end of file + shutil.rmtree(tempdir)