8000 Remove hack to encode __all__ as ascii (#178) · pythonAI/client_python@0634b77 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 0634b77

Browse files
bz2brian-brazil
authored andcommitted
Remove hack to encode __all__ as ascii (prometheus#178)
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.
1 parent caf3293 commit 0634b77

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

prometheus_client/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from . import platform_collector
77

88
__all__ = ['Counter', 'Gauge', 'Summary', 'Histogram']
9-
# http://stackoverflow.com/questions/19913653/no-unicode-in-all-for-a-packages-init
10-
__all__ = [n.encode('ascii') for n in __all__]
119

1210
CollectorRegistry = core.CollectorRegistry
1311
REGISTRY = core.REGISTRY

0 commit comments

Comments
 (0)
0