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

Skip to content

Commit 68d2327

Browse files
NelleVQuLogic
authored andcommitted
Merge pull request #7729 from rishikksh20/master
For make raw_input compatible with python3
1 parent 9da1153 commit 68d2327

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
@@ -79,7 +79,11 @@ def main():
7979
for ii in range(10):
8080
pl.plot()
8181
time.sleep(0.5)
82-
raw_input('press Enter...')
82+
try:
83+
input = raw_input
84+
except NameError:
85+
pass
86+
input('press Enter...')
8387
pl.plot(finished=True)
8488

8589
if __name__ == '__main__':

0 commit comments

Comments
 (0)