From f9d9af9a5fe4494d09bc3e4996ca7df057f49ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Sat, 28 Nov 2020 01:41:46 +0100 Subject: [PATCH] ui: replaced deprecated tostring() by tobytes() > Deprecated since version 3.2, will be removed in version 3.9. And they did! https://docs.python.org/3.9/library/array.html#array.array.tobytes --- ui/opensnitch/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/opensnitch/service.py b/ui/opensnitch/service.py index cbe28b191d..b5977c7541 100644 --- a/ui/opensnitch/service.py +++ b/ui/opensnitch/service.py @@ -82,7 +82,7 @@ def _setup_interfaces(self): 0x8912, # SIOCGIFCONF struct.pack('iL', bytes, names.buffer_info()[0]) ))[0] - namestr = names.tostring() + namestr = names.tobytes() self._interfaces = {} for i in range(0, outbytes, 40): name = namestr[i:i+16].split(b'\0', 1)[0]