8000 Sourcery refactored master branch by sourcery-ai[bot] · Pull Request #1 · PeterParkette/td · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sourcery refactored master branch #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions example/python/tdjson_example.py
Original file line number Diff line number Diff line change
8618 Expand Up @@ -80,8 +80,7 @@ def td_receive():

# main events cycle
while True:
event = td_receive()
if event:
if event := td_receive():
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 83-84 refactored with the following changes:

# process authorization states
if event['@type'] == 'updateAuthorizationState':
auth_state = event['authorization_state']
Expand Down
0