Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 68d2327

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

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎examples/misc/multiprocess.py

Copy file name to clipboardExpand all lines: examples/misc/multiprocess.py
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.