From: Philipp Hagemeister Date: Tue, 27 Nov 2012 22:06:49 +0000 (+0100) Subject: Use u instead of str in Python 2 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1a84d8675b4417ca9adf40bb12325c728767896a;p=youtube-dl Use u instead of str in Python 2 --- diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 85ffad18c..0bbe1a6b7 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -1166,7 +1166,7 @@ class ArteTvIE(InfoExtractor): self.report_download_webpage(url) webpage = urllib2.urlopen(request).read() except (urllib2.URLError, httplib.HTTPException, socket.error), err: - self._downloader.trouble(u'ERROR: Unable to retrieve video webpage: %s' % str(err)) + self._downloader.trouble(u'ERROR: Unable to retrieve video webpage: %s' % u(err)) return except ValueError, err: self._downloader.trouble(u'ERROR: Invalid URL: %s' % url)