From c57f388b2092862e420a2497194a6acd225233bc Mon Sep 17 00:00:00 2001 From: Jeremy Carbaugh Date: Wed, 4 Apr 2012 18:22:34 -0400 Subject: [PATCH] move xrd import so install works --- pywebfinger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pywebfinger.py b/pywebfinger.py index 234bf97..787918c 100644 --- a/pywebfinger.py +++ b/pywebfinger.py @@ -1,4 +1,3 @@ -from xrd import XRD import urllib, urllib2 __version__ = '0.1' @@ -57,9 +56,13 @@ class WebFingerClient(object): return hosts def xrd(self, url, raw=False): + + from xrd import XRD + conn = self._opener.open(url, timeout=self._timeout) response = conn.read() conn.close() + return response if raw else XRD.parse(response) def hostmeta(self, protocol):