Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Use get() with ConfigParser for 2.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
NateShoffner committed Mar 9, 2015
1 parent 5b2ec09 commit 33a5563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/auth.py
Expand Up @@ -13,8 +13,8 @@ def authenticate():
# Get client ID and secret from auth.ini
config = get_config()
config.read('auth.ini')
client_id = config['credentials']['client_id']
client_secret = config['credentials']['client_secret']
client_id = config.get('credentials', 'client_id')
client_secret = config.get('credentials', 'client_secret')

client = ImgurClient(client_id, client_secret)

Expand Down

0 comments on commit 33a5563

Please sign in to comment.