Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
52824f18
Commit
52824f18
authored
Jun 19, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doctest under python3
parent
d65af447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gevent/subprocess.py
gevent/subprocess.py
+2
-2
No files found.
gevent/subprocess.py
View file @
52824f18
...
@@ -146,14 +146,14 @@ def check_output(*popenargs, **kwargs):
...
@@ -146,14 +146,14 @@ def check_output(*popenargs, **kwargs):
The arguments are the same as for the Popen constructor. Example:
The arguments are the same as for the Popen constructor. Example:
>>> print(check_output(["ls", "-1", "/dev/null"]))
>>> print(check_output(["ls", "-1", "/dev/null"])
.decode('ascii')
)
/dev/null
/dev/null
<BLANKLINE>
<BLANKLINE>
The stdout argument is not allowed as it is used internally.
The stdout argument is not allowed as it is used internally.
To capture standard error in the result, use stderr=STDOUT.
To capture standard error in the result, use stderr=STDOUT.
>>> print(check_output(["/bin/sh", "-c", "echo hello world"], stderr=STDOUT))
>>> print(check_output(["/bin/sh", "-c", "echo hello world"], stderr=STDOUT)
.decode('ascii')
)
hello world
hello world
<BLANKLINE>
<BLANKLINE>
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment