Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 8d80401

Browse files
committed
Fix error with saving credentials in python 2.7
This fixes #102
1 parent 86f664e commit 8d80401

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spoppy/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
from appdirs import user_cache_dir
55

6+
try:
7+
# python2.7
8+
input = raw_input
9+
except NameError:
10+
pass
11+
612
CONFIG_FILE_NAME = os.path.join(
713
user_cache_dir(appname='spoppy'), '.creds'
814
)

0 commit comments

Comments
 (0)