From 670bd9f1b3a165222fa6f51aff1e9b3b3e06908a Mon Sep 17 00:00:00 2001 From: Martin Packman Date: Wed, 12 Jul 2017 14:33:09 +0100 Subject: [PATCH] Remove hack to encode __all__ as ascii Previously the code included: from __future__ import unicode_literals But with that gone in the current version, it makes no sense to mess with the contents of __all__ at all. --- prometheus_client/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/prometheus_client/__init__.py b/prometheus_client/__init__.py index b270a868..9aa4cdfa 100644 --- a/prometheus_client/__init__.py +++ b/prometheus_client/__init__.py @@ -6,8 +6,6 @@ from . import platform_collector __all__ = ['Counter', 'Gauge', 'Summary', 'Histogram'] -# http://stackoverflow.com/questions/19913653/no-unicode-in-all-for-a-packages-init -__all__ = [n.encode('ascii') for n in __all__] CollectorRegistry = core.CollectorRegistry REGISTRY = core.REGISTRY