1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 23:57:17 +08:00

Using urllib2 for update-mechanism to get support for proxies.

This commit is contained in:
Johan 2012-05-15 21:00:56 +03:00
parent 0c24eed73a
commit 8355507ab4

View File

@ -4259,7 +4259,7 @@ def updateSelf(downloader, filename):
try: try:
try: try:
urlh = urllib.urlopen(UPDATE_URL) urlh = urllib2.urlopen(UPDATE_URL)
newcontent = urlh.read() newcontent = urlh.read()
vmatch = re.search("__version__ = '([^']+)'", newcontent) vmatch = re.search("__version__ = '([^']+)'", newcontent)