From 5bf09487127e1a40ed898665da7f86f088f4c2bc Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Mon, 15 Feb 2016 12:10:00 +0000 Subject: [PATCH] wildcard common enums in root module --- steam/client/__init__.py | 4 ++-- steam/enums/__init__.py | 2 +- steam/enums/common.py | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/steam/client/__init__.py b/steam/client/__init__.py index 04ad340..ecc60ea 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -2,7 +2,7 @@ import logging import gevent from eventemitter import EventEmitter from steam.enums.emsg import EMsg -from steam.enums import EResult +from steam.enums import EResult, EOSType from steam.core.msg import MsgProto from steam.core.cm import CMClient from steam import SteamID @@ -135,7 +135,7 @@ class SteamClient(EventEmitter, FeatureBase): message.header.steamid = SteamID(type='Individual', universe='Public') message.body.protocol_version = 65575 message.body.client_package_version = 1771 - message.body.client_os_type = 13 + message.body.client_os_type = EOSType.Win10 message.body.client_language = "english" message.body.account_name = username diff --git a/steam/enums/__init__.py b/steam/enums/__init__.py index 4d462c9..f05157f 100644 --- a/steam/enums/__init__.py +++ b/steam/enums/__init__.py @@ -20,4 +20,4 @@ They also provide a easy way to resolve a name or value for a specific enum. all enums from :py:mod:`steam.enum.common` can be imported directly from :py:mod:`steam.enum` """ -from steam.enums.common import EResult, EType, EUniverse, EServerType +from steam.enums.common import * diff --git a/steam/enums/common.py b/steam/enums/common.py index 0f126eb..f9b1c11 100644 --- a/steam/enums/common.py +++ b/steam/enums/common.py @@ -1,5 +1,13 @@ from steam.enums.base import SteamIntEnum +__all__ = [ + 'EResult', + 'EUniverse', + 'EType', + 'EServerType', + 'EOSType', + ] + class EResult(SteamIntEnum): Invalid = 0