Fix undefined variable error.
This commit is contained in:
parent
93e3c62b99
commit
1acd60d7f2
@ -175,6 +175,7 @@ class Zipfile(object):
|
|||||||
|
|
||||||
def available_updates():
|
def available_updates():
|
||||||
whattypes = config.get('behavior.check-for-update-types')
|
whattypes = config.get('behavior.check-for-update-types')
|
||||||
|
context = None
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
if mac():
|
if mac():
|
||||||
from ssl import create_default_context, CERT_NONE
|
from ssl import create_default_context, CERT_NONE
|
||||||
@ -430,4 +431,3 @@ class OpenFileOrStdin:
|
|||||||
if self.filename != '-':
|
if self.filename != '-':
|
||||||
self.filehandle.close()
|
self.filehandle.close()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user