File dash-core-python39-tobytes.patch of Package dash-core

From ec7aabed8ae86042a1ba73ed3d52b0fc751cde5d Mon Sep 17 00:00:00 2001
From: Carl Dong <accounts@carldong.me>
Date: Mon, 13 Aug 2018 19:05:31 -0700
Subject: [PATCH] tests: Replace usage of tostring() with tobytes()

tostring() is deprecated as of python 3.7 and results in stderr output
causing tests to fail
---
 test/functional/test_framework/netutil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/functional/test_framework/netutil.py b/test/functional/test_framework/netutil.py
index 1c7b7a1af3..195ec1c5e8 100644
--- a/test/functional/test_framework/netutil.py
+++ b/test/functional/test_framework/netutil.py
@@ -107,7 +107,7 @@ def all_interfaces():
             max_possible *= 2
         else:
             break
-    namestr = names.tostring()
+    namestr = names.tobytes()
     return [(namestr[i:i+16].split(b'\0', 1)[0],
              socket.inet_ntoa(namestr[i+20:i+24]))
             for i in range(0, outbytes, struct_size)]
-- 
2.31.1