aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework/netutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/rpc-tests/test_framework/netutil.py')
-rw-r--r--qa/rpc-tests/test_framework/netutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/netutil.py b/qa/rpc-tests/test_framework/netutil.py
index 573b06772d..b92a9f6e1c 100644
--- a/qa/rpc-tests/test_framework/netutil.py
+++ b/qa/rpc-tests/test_framework/netutil.py
@@ -58,7 +58,7 @@ def netstat(typ='tcp'):
To get pid of all network process running on system, you must run this script
as superuser
'''
- with open('/proc/net/'+typ,'r') as f:
+ with open('/proc/net/'+typ,'r',encoding='utf8') as f:
content = f.readlines()
content.pop(0)
result = []