From b3a5c0729e286ff6e2ee70c2cda431642ee52504 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 4 Sep 2021 22:13:40 +0200 Subject: feeds: bytes /= string --- user-profiles/feeds/imm-notmuch-insert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user-profiles') diff --git a/user-profiles/feeds/imm-notmuch-insert.py b/user-profiles/feeds/imm-notmuch-insert.py index 73342c90..98a05c7e 100644 --- a/user-profiles/feeds/imm-notmuch-insert.py +++ b/user-profiles/feeds/imm-notmuch-insert.py @@ -3,7 +3,7 @@ import json import sys import subprocess -from io import StringIO +from io import BytesIO from email.message import EmailMessage import configparser from os import environ @@ -30,7 +30,7 @@ def main(): subprocess.run( args=['notmuch', 'insert'], check=True, - stdin=StringIO(bytes(msg)) + stdin=BytesIO(bytes(msg)) ) if __name__ == '__main__': -- cgit v1.2.3