Skip to content

Commit

Permalink
flake8 fix for Py3
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 18, 2014
1 parent b62e2fd commit edd0b45
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion word_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
import os
import time

# For Python 2.x
try:
input = raw_input
except NameError:
pass

# Test mode doesn't actually save csv, ini or update Wordnik or Twitter
TEST_MODE = False

Expand Down Expand Up @@ -308,7 +314,7 @@ def get_wordnik_token():
if WORDNIK_USERNAME:
my_username = WORDNIK_USERNAME
else:
my_username = raw_input("Enter your Wordnik username: ")
my_username = input("Enter your Wordnik username: ")
if WORDNIK_PASSWORD:
my_password = WORDNIK_PASSWORD
else:
Expand Down

0 comments on commit edd0b45

Please sign in to comment.