whois/__init__.py
changeset 158 bcae8cb61002
parent 140 196df98347d8
--- 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()