forked from shaba/openuds
Removed "prints" :)
This commit is contained in:
parent
293b7f02ad
commit
741855030f
@ -183,7 +183,6 @@ class RestApi:
|
|||||||
def _open(
|
def _open(
|
||||||
url: str, certErrorCallback: typing.Optional[CertCallbackType] = None
|
url: str, certErrorCallback: typing.Optional[CertCallbackType] = None
|
||||||
) -> typing.Any:
|
) -> typing.Any:
|
||||||
print('Open')
|
|
||||||
ctx = ssl.create_default_context()
|
ctx = ssl.create_default_context()
|
||||||
ctx.check_hostname = False
|
ctx.check_hostname = False
|
||||||
ctx.verify_mode = ssl.CERT_NONE
|
ctx.verify_mode = ssl.CERT_NONE
|
||||||
@ -246,7 +245,6 @@ class RestApi:
|
|||||||
def getUrl(
|
def getUrl(
|
||||||
url: str, certErrorCallback: typing.Optional[CertCallbackType] = None
|
url: str, certErrorCallback: typing.Optional[CertCallbackType] = None
|
||||||
) -> bytes:
|
) -> bytes:
|
||||||
print(url)
|
|
||||||
with RestApi._open(url, certErrorCallback) as response:
|
with RestApi._open(url, certErrorCallback) as response:
|
||||||
resp = response.read()
|
resp = response.read()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user