Fix undefined variable error.

This commit is contained in:
John Ralls 2015-10-26 14:04:01 -07:00
parent 93e3c62b99
commit 1acd60d7f2

View File

@ -175,6 +175,7 @@ class Zipfile(object):
def available_updates():
whattypes = config.get('behavior.check-for-update-types')
context = None
from urllib.request import urlopen
if mac():
from ssl import create_default_context, CERT_NONE
@ -430,4 +431,3 @@ class OpenFileOrStdin:
if self.filename != '-':
self.filehandle.close()
return False