-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Overhaul external process calls #7572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7e8882a
Overhaul external process calls
tomspur de4acea
TexManager: Use `subprocess` instead of `os.system`
tomspur b09e79c
Use `subprocess` instead `os.system` also in the examples
tomspur 772fbc4
tests: Remove < 2.7 compat code
tomspur 742cf62
BUG: fix check_output with non-ascii in paths similar to #7715
tomspur 9bf01c6
doc/make.py: Use cwd in check_output instead of os.chdir
tomspur 8844fd4
backend_ps: Try to fix UnicodeError
tomspur 6d189b3
Remove precmd from backend_ps and use subprocess
tomspur 982ade1
backend_ps: Print strings explicitely when printing error report
tomspur 24ce833
subprocess: Use check_output instead of check_call
tomspur 01491c0
backend_ps: remove uneeded imports and fix some pep8 errors
tomspur dbb0115
TexManager: transform bytes-object to string before searching for box…
tomspur f56dd13
TexManager: Remove unneeded _get_shell_cmd
tomspur c3b481b
Fix typo: 'determin'
tomspur 79d71cc
backend_ps: replace os.popen3 -> subprocess.Popen
tomspur d579266
backend_ps: remove one not needed str casting
tomspur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
backend_ps: Try to fix UnicodeError
The full traceback leads to here: lib/matplotlib/backends/backend_ps.py:1537: in gs_distill if ps_backend_helper.supports_ps2write: # gs version >= 9 lib/matplotlib/backends/backend_ps.py:106: in supports_ps2write return self.gs_version[0] >= 9 lib/matplotlib/backends/backend_ps.py:87: in gs_version s = Popen([self.gs_exe, "--version"], stdout=PIPE) venv/lib/python2.7/site-packages/subprocess32.py:825: in __init__ restore_signals, start_new_session) venv/lib/python2.7/site-packages/subprocess32.py:1387: in _execute_child for exe in executable_list) venv/lib/python2.7/site-packages/subprocess32.py:1386: in <genexpr> executable_list = tuple(fs_encode(exe) venv/lib/python2.7/site-packages/subprocess32.py:1385: in <genexpr> for dir in path_list)
- Loading branch information
commit 8844fd4807a08d8034b94dcc7897035cc1f456ec
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the
str
already done in the property?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One missed change?