Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27bc177

Browse files
authored
Merge pull request #7729 from rishikksh20/master
For make raw_input compatible with python3
2 parents d7b7522 + fdf4d61 commit 27bc177

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/misc/multiprocess.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def main():
7676
for ii in range(10):
7777
pl.plot()
7878
time.sleep(0.5)
79-
raw_input('press Enter...')
79+
try:
80+
input = raw_input
81+
except NameError:
82+
pass
83+
input('press Enter...')
8084
pl.plot(finished=True)
8185

8286
if __name__ == '__main__':

0 commit comments

Comments
 (0)