commit 6c5c65c95e25835858545e42d5dbebf55017ad99 Author: Jiri Prochazka jprochaz@redhat.com Date: Tue Apr 21 15:10:45 2015 +0200
Fix "Undefined variable 'HTTPError'" error
Found with pylint. Fixed by importing exception class HTTPError from module urllib2
Signed-off-by: Jiri Prochazka jprochaz@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Common/RecipePath.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lnst/Common/RecipePath.py b/lnst/Common/RecipePath.py index b976238..3199a1a 100644 --- a/lnst/Common/RecipePath.py +++ b/lnst/Common/RecipePath.py @@ -12,7 +12,7 @@ jtluka@redhat.com (Jan Tluka)
import os from urlparse import urljoin -from urllib2 import urlopen +from urllib2 import urlopen, HTTPError from tempfile import NamedTemporaryFile
def get_recipepath_class(root, path):