Initalize variable.

This commit is contained in:
John Schember 2011-03-12 14:38:30 -05:00
parent 9f7eb04762
commit 6663715f75

View File

@ -520,6 +520,7 @@ def get_download_filename(url, cookie_file=None):
br.set_cookiejar(cj)
with closing(br.open(url)) as r:
filename = ''
disposition = r.info().get('Content-disposition', '')
for p in disposition.split(';'):
if 'filename' in p: