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 27bc177

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

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.