aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap/wrap.py
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-11-26 14:41:21 -0500
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-12-05 22:19:28 -0500
commit298299d711e8bf577f931db80408df2e835ebda0 (patch)
tree74133269a3183d494eb8d90865c0f1ff3969676d /mesonbuild/wrap/wrap.py
parent9ca9bb7c09cc0d73ee1f79163408a46794aebee3 (diff)
downloadmeson-298299d711e8bf577f931db80408df2e835ebda0.zip
meson-298299d711e8bf577f931db80408df2e835ebda0.tar.gz
meson-298299d711e8bf577f931db80408df2e835ebda0.tar.bz2
doc: py35 deprecation comments
Diffstat (limited to 'mesonbuild/wrap/wrap.py')
-rw-r--r--mesonbuild/wrap/wrap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index 2895914..941b29e 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
@@ -46,6 +46,7 @@ except ImportError:
req_timeout = 600.0
ssl_warning_printed = False
+
def quiet_git(cmd: typing.List[str], workingdir: str) -> typing.Tuple[bool, str]:
try:
pc = subprocess.run(['git', '-C', workingdir] + cmd, universal_newlines=True,
@@ -60,7 +61,7 @@ def open_wrapdburl(urlstring: str) -> 'http.client.HTTPResponse':
global ssl_warning_printed
if has_ssl:
try:
- return urllib.request.urlopen(urlstring, timeout=req_timeout) # , context=ssl.create_default_context())
+ return urllib.request.urlopen(urlstring, timeout=req_timeout)
except urllib.error.URLError:
if not ssl_warning_printed:
print('SSL connection failed. Falling back to unencrypted connections.', file=sys.stderr)