Skip to content

Commit

Permalink
extra_tokens is a key-value dict
Browse files Browse the repository at this point in the history
  • Loading branch information
msonsona committed Nov 9, 2015
1 parent ff32142 commit f385351
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions credentials_pickler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
access_token_secret = input("5. Enter the access_token_secret > ")

extra_info = 'y'
extra_tokens = []
extra_tokens = {}
while extra_info == 'y':
extra_info = input("Do you want to store any extra key - value pair? (y/n) > ")
if extra_info == 'y':
extra_info_key = input("First, enter the name (key) > ")
extra_info_value = input("Second, enter the value to store > ")
extra_tokens.append({'key': extra_info_key,
'value': extra_info_value})
extra_tokens[extra_info_key] = extra_info_value


credentials = {
Expand Down

0 comments on commit f385351

Please sign in to comment.