Skip to content

Commit c37fc95

Browse files
committed
signi.py: checkfiles expects a string, not a bytes-like object
This matches what is done here: https://github.com/bjornedstrom/python-signify/blob/master/signify/pure.py#L440 before: ``` Signature Verified Traceback (most recent call last): File "/usr/bin/signi.py", line 181, in <module> main() File "/usr/bin/signi.py", line 121, in main for path, status in check.checkfiles(os.getcwd(), message): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/signify/check.py", line 36, in checkfiles for algo, path, ref_digest in re.findall( ^^^^^^^^^^^ File "/usr/lib64/python3.12/re/__init__.py", line 217, in findall return _compile(pattern, flags).findall(string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: cannot use a string pattern on a bytes-like object ``` after: ``` Signature Verified foo.pem: OK bar.pem: OK ```
1 parent d6fb075 commit c37fc95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/signi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def main():
117117
sys.exit(1)
118118

119119
exit_fail = False
120-
for path, status in check.checkfiles(os.getcwd(), message):
120+
for path, status in check.checkfiles(os.getcwd(), message.decode('utf-8')):
121121
if args.path:
122122
include = (path in args.path)
123123
else:

0 commit comments

Comments
 (0)