# HG changeset patch # User richardpenman # Date 1516747864 18000 # Node ID bcae8cb61002eb21f5ea75f1d6396f79f9e4bf4e # Parent f091b6581d216a07b1d6106c8dde7544cf9d1504 decode string for python 3 diff -r f091b6581d21 -r bcae8cb61002 setup.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', diff -r f091b6581d21 -r bcae8cb61002 whois/__init__.py --- 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()