Skip to content

Commit 41a1831

Browse files
committed
move comment on py 3.7.6 to where it is used
Signed-off-by: George Mossessian <gmossessian@gmail.com>
1 parent 0c5b611 commit 41a1831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_client/exposition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"""Content type of the latest text format"""
3030

3131
PYTHON26_OR_OLDER = sys.version_info < (2, 7)
32-
# Due to https://bugs.python.org/issue27657:
3332
PYTHON376_OR_NEWER = sys.version_info > (3, 7, 5)
3433

3534
def make_wsgi_app(registry=REGISTRY):
@@ -342,6 +341,7 @@ def delete_from_gateway(
342341

343342
def _use_gateway(method, gateway, job, registry, grouping_key, timeout, handler):
344343
gateway_url = urlparse(gateway)
344+
# See https://bugs.python.org/issue27657 for details on urlparse in py>=3.7.6.
345345
if not gateway_url.scheme or (
346346
(PYTHON376_OR_NEWER or PYTHON26_OR_OLDER)
347347
and gateway_url.scheme not in ['http', 'https']

0 commit comments

Comments
 (0)