forked from oostendo/python-zxing
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Passing a pathlib.Path object as the filenames parameter raises some error:
Traceback (most recent call last):
File "/home/stefan/temp/run.py", line 57, in <module>
print(reader.decode(path))
File "/home/stefan/temp/venv/lib/python3.9/site-packages/zxing/__init__.py", line 80, in decode
for fn_or_im in filenames:
TypeError: 'PosixPath' object is not iterablepython-zxing/zxing/__init__.py
Lines 72 to 76 in ea517d0
| if isinstance(filenames, (str, IOBase, Image) if have_pil else (str, IOBase)): | |
| one_file = True | |
| filenames = filenames, | |
| else: | |
| one_file = False |
Metadata
Metadata
Assignees
Labels
No labels