decode string for python 3
authorrichardpenman
Tue, 23 Jan 2018 17:51:04 -0500
changeset 158 bcae8cb61002
parent 157 f091b6581d21
child 159 3b39f61b8a81
decode string for python 3
setup.py
whois/__init__.py
--- a/setup.py	Wed Dec 20 18:15:24 2017 +0000
+++ b/setup.py	Tue Jan 23 17:51:04 2018 -0500
@@ -1,7 +1,7 @@
 import sys, os
 import setuptools
 
-version = '0.6.7'
+version = '0.6.8'
 
 setuptools.setup(
     name='python-whois',
--- a/whois/__init__.py	Wed Dec 20 18:15:24 2017 +0000
+++ b/whois/__init__.py	Tue Jan 23 17:51:04 2018 -0500
@@ -33,7 +33,7 @@
     if command:
         # try native whois command
         r = subprocess.Popen(['whois', domain], stdout=subprocess.PIPE)
-        text = r.stdout.read()
+        text = r.stdout.read().decode()
     else:
         # try builtin client
         nic_client = NICClient()