Skip to content

Commit

Permalink
docs and recipe tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed May 2, 2020
1 parent e12ce8c commit 2a28c0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ After that we logout.

.. code:: python
from steam.steamid import SteamClient
from steam.client import SteamClient
from steam.enums.emsg import EMsg
client = SteamClient()
Expand Down
6 changes: 3 additions & 3 deletions recipes/1.Login/diy_one_off_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
print("-"*20)

LOGON_DETAILS = {
'username': raw_input("Steam user: "),
'username': input("Steam user: "),
'password': getpass("Password: "),
}

Expand All @@ -20,10 +20,10 @@ def error(result):
@client.on('auth_code_required')
def auth_code_prompt(is_2fa, mismatch):
if is_2fa:
code = raw_input("Enter 2FA Code: ")
code = input("Enter 2FA Code: ")
client.login(two_factor_code=code, **LOGON_DETAILS)
else:
code = raw_input("Enter Email Code: ")
code = input("Enter Email Code: ")
client.login(auth_code=code, **LOGON_DETAILS)


Expand Down
2 changes: 1 addition & 1 deletion recipes/2.SimpleWebAPI/steam_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from steam.client import SteamClient
from steam.core.msg import MsgProto
from steam.enums.emsg import EMsg
from steam.util import proto_to_dict
from steam.utils.proto import proto_to_dict
import vdf

LOG = logging.getLogger("Steam Worker")
Expand Down

0 comments on commit 2a28c0e

Please sign in to comment.