1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Alexandre Detiste <tchet@debian.org>
Date: Wed, 13 Dec 2023 18:05:47 +0200
Subject: Remove dependecy on python3-future
Forwarded: no, upstream stays Python2.7 compatible for now
--- a/main.py
+++ b/main.py
@@ -41,7 +41,8 @@
import json
import OpenSSL.crypto as crypto
-from future.utils import bytes_to_native_str as n
+def n(b, encoding='utf-8'):
+ return b.decode(encoding)
try:
from json.decoder import JSONDecodeError
--- a/matrix/commands.py
+++ b/matrix/commands.py
@@ -21,7 +21,7 @@
import re
import shlex
from builtins import str
-from future.moves.itertools import zip_longest
+from itertools import zip_longest
from collections import defaultdict
from functools import partial
from nio import EncryptionError, LocalProtocolError
|