From 4c763f6e2c1b8b851120fe009d02a9e9c8ba17ea Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Thu, 30 May 2019 18:38:44 +0100 Subject: [PATCH] tweak __all__ generation for enums --- steam/enums/common.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/steam/enums/common.py b/steam/enums/common.py index ab3849b..0e462be 100644 --- a/steam/enums/common.py +++ b/steam/enums/common.py @@ -540,11 +540,10 @@ class ECurrencyCode(SteamIntEnum): # Do not remove -from sys import modules from enum import EnumMeta __all__ = list(map(lambda y: y.__name__, - filter(lambda x: x.__class__ is EnumMeta, modules[__name__].__dict__.values()), - )) + filter(lambda x: x.__class__ is EnumMeta, globals().values()), + )) -del modules, EnumMeta +del EnumMeta