raw_input() was removed from Python on 1/1/2020
@@ -22,7 +22,7 @@ object ``g``. That might look like this::
pass
try:
- user = raw_input('GitHub username: ')
+ user = input('GitHub username: ') or getuser()
except KeyboardInterrupt:
user = getuser()
@@ -60,12 +60,12 @@ Adding a new key to your account
::
try:
- path = raw_input('Path to key: ')
+ path = input('Path to key: ')
except KeyboardInterrupt:
path = ''
try:
- name = raw_input('Key name: ')
+ name = input('Key name: ')
except KeyboardInterrupt:
name = ''
@@ -110,7 +110,7 @@ Creating a new repository
for key in keys:
try:
- repo[key] = raw_input(key + ': ')
+ repo[key] = input(key + ': ')
except KeyboardInterrupt:
pass
