8000 Merge pull request #990 from cclauss/patch-1 · staticdev/github4.py@3d4ac72 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 3d4ac72

Browse files
authored
Merge pull request sigmavirus24#990 from cclauss/patch-1
raw_input() was removed from Python on 1/1/2020
2 parents 9621175 + 5c718eb commit 3d4ac72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/examples/github.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object ``g``. That might look like this::
2222
pass
2323

2424
try:
25-
user = raw_input('GitHub username: ')
25+
user = input('GitHub username: ') or getuser()
2626
except KeyboardInterrupt:
2727
user = getuser()
2828

@@ -60,12 +60,12 @@ Adding a new key to your account
6060
::
6161

6262
try:
63-
path = raw_input('Path to key: ')
63+
path = input('Path to key: ')
6464
except KeyboardInterrupt:
6565
path = ''
6666

6767
try:
68-
name = raw_input('Key name: ')
68+
name = input('Key name: ')
6969
except KeyboardInterrupt:
7070
name = ''
7171

@@ -110,7 +110,7 @@ Creating a new repository
110110

111111
for key in keys:
112112
try:
113-
repo[key] = raw_input(key + ': ')
113+
repo[key] = input(key + ': ')
114114
except KeyboardInterrupt:
115115
pass
116116

0 commit comments

Comments
 (0)
0