From 78a7af2dbf880e14732c231b2fadec8346bbccbf Mon Sep 17 00:00:00 2001 From: calvin Date: Tue, 2 Nov 2004 13:05:39 +0000 Subject: [PATCH] accept unicode filenames in resolver config git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1902 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/dns/resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/dns/resolver.py b/linkcheck/dns/resolver.py index 48ebf1b7..728282c2 100644 --- a/linkcheck/dns/resolver.py +++ b/linkcheck/dns/resolver.py @@ -306,7 +306,7 @@ class Resolver(object): """Process f as a file in the /etc/resolv.conf format. If f is a string, it is used as the name of the file to open; otherwise it is treated as the file itself.""" - if isinstance(f, str) or isinstance(f, unicode): + if isinstance(f, basestring): f = open(f, 'r') want_close = True else: