-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Delay the fc-list warning by 5 seconds #7532
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
else: | ||
import subprocess | ||
|
||
__all__ = ['Popen', 'PIPE', 'STDOUT', 'check_output', 'CalledProcessError'] | ||
__all__ = ['Popen', 'PIPE', 'STDOUT', 'check_output', 'CalledProcessError', 'TimeoutExpired'] | ||
|
||
|
||
if hasattr(subprocess, 'Popen'): | ||
|
@@ -36,6 +36,7 @@ | |
STDOUT = subprocess.STDOUT | ||
CalledProcessError = subprocess.CalledProcessError | ||
check_output = subprocess.check_output | ||
TimeoutExpired = subprocess.TimeoutExpired | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not work on python2 unless subprocess32 is installed. Python 2.7.12 (default, Nov 7 2016, 11:55:55)
[GCC 6.2.1 20160830] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.TimeoutExpired
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'TimeoutExpired'
>>> This looks like it is working on travis because |
||
else: | ||
# In restricted environments (such as Google App Engine), these are | ||
# non-existent. Replace them with dummy versions that always raise OSError. | ||
|
@@ -49,3 +50,4 @@ def check_output(*args, **kwargs): | |
# There is no need to catch CalledProcessError. These stubs cannot raise | ||
# it. None in an except clause will simply not match any exceptions. | ||
CalledProcessError = None | ||
TimeoutExpired = None |
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.
This needs to be line-wrapped ❤️ pep8