Disable useless-suppression in webserver_sub_ssl.
Seems like this pylint bug doesn't happen on all systems...
This commit is contained in:
parent
11dc51031d
commit
0936ed4e61
@ -55,7 +55,8 @@ def main():
|
||||
ssl_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)),
|
||||
'data', 'ssl')
|
||||
# WORKAROUND for https://github.com/PyCQA/pylint/issues/399
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) # pylint: disable=no-member
|
||||
# pylint: disable=no-member, useless-suppression
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
|
||||
context.load_cert_chain(os.path.join(ssl_dir, 'cert.pem'),
|
||||
os.path.join(ssl_dir, 'key.pem'))
|
||||
app.run(port=int(sys.argv[1]), debug=False, ssl_context=context)
|
||||
|
Loading…
Reference in New Issue
Block a user