MCPcopy Create free account
hub / github.com/apache/httpd / curl_is_less_than

Method curl_is_less_than

test/pyhttpd/env.py:523–535  ·  view source on GitHub ↗
(self, version)

Source from the content-addressed store, hash-verified

521 return False
522
523 def curl_is_less_than(self, version):
524 if self._curl_version is None:
525 p = subprocess.run([self._curl, '-V'], capture_output=True, text=True)
526 if p.returncode != 0:
527 return False
528 for l in p.stdout.splitlines():
529 m = re.match(r'curl ([0-9.]+)[- ].*', l)
530 if m:
531 self._curl_version = self._versiontuple(m.group(1))
532 break
533 if self._curl_version is not None:
534 return self._curl_version < self._versiontuple(version)
535 return False
536
537 def has_nghttp(self):
538 return self._nghttp != ""

Callers 4

test_h2_101_02Method · 0.80
test_h2_101_03Method · 0.80
test_h2_101_04Method · 0.80
test_h2_101_11Method · 0.80

Calls 2

_versiontupleMethod · 0.95
runMethod · 0.45

Tested by 4

test_h2_101_02Method · 0.64
test_h2_101_03Method · 0.64
test_h2_101_04Method · 0.64
test_h2_101_11Method · 0.64