Skip to content

Commit

Permalink
Fix linters
Browse files Browse the repository at this point in the history
Signed-off-by: ivan-valkov <iv.v.valkov@gmail.com>
  • Loading branch information
ivan-valkov committed Mar 2, 2022
1 parent 9974c46 commit 245c3be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prometheus_client/exposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def do_GET(self) -> None:
accept_encoding_header = self.headers.get('Accept-Encoding')
params = parse_qs(urlparse(self.path).query)
# Bake output
status, headers, output = _bake_output(registry, accept_header, accept_encoding_header, params)
status, headers, output = _bake_output(registry, accept_header, accept_encoding_header, params, False)
# Return output
self.send_response(int(status.split(' ')[0]))
for header in headers:
Expand Down
4 changes: 1 addition & 3 deletions tests/test_wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from unittest import TestCase
from wsgiref.util import setup_testing_defaults

from prometheus_client import (
CollectorRegistry, Counter, make_wsgi_app,
)
from prometheus_client import CollectorRegistry, Counter, make_wsgi_app
from prometheus_client.exposition import _bake_output, CONTENT_TYPE_LATEST


Expand Down

0 comments on commit 245c3be

Please sign in to comment.