Fix exception in _parse_srv_result_nt() (on Windows)

Sometimes 'result' parameter is byte[] which causes exception:
TypeError: 'str' does not support the buffer interface
This commit is contained in:
Nathalie Rud 2016-04-27 02:53:43 +03:00
parent 060aa01857
commit 5988aa3aa8
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class NSLookupResolver(CommonResolver):
if not result:
return []
hosts = []
lines = result.replace('\r', '').split('\n')
lines = str(result).replace('\r', '').split('\n')
current_host = None
for line in lines:
line = line.lstrip()