Fix undefined variable error.
This commit is contained in:
parent
93e3c62b99
commit
1acd60d7f2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user