Skip to content

Commit 9f916ec

Browse files
committed
Use PyPortal.set_headers() instead of being bad and digging in
1 parent 2981b20 commit 9f916ec

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Twitter_API/code.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ def get_bearer_token():
7575

7676
bearer_token = get_bearer_token()
7777

78-
#pylint:disable=protected-access
79-
pyportal._headers = {'Authorization': 'Bearer ' + bearer_token}
80-
#pylint:enable=protected-access
78+
pyportal.set_headers({'Authorization': 'Bearer ' + bearer_token})
8179

8280
while True:
8381
pyportal.fetch()

0 commit comments

Comments
 (0)