Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 67690 Details for
Bug 104932
esearch: Minor patch to disable color if stdout is not a TTY
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Simple patch to suppress color if stdout is not a tty
esearch-no-color-if-not-tty.diff (text/plain), 332 bytes, created by
tar
on 2005-09-05 11:41:42 UTC
(
hide
)
Description:
Simple patch to suppress color if stdout is not a tty
Filename:
MIME Type:
Creator:
tar
Created:
2005-09-05 11:41:42 UTC
Size:
332 bytes
patch
obsolete
>--- esearch.py+ 2004-09-26 04:56:23.000000000 -0500 >+++ esearch.py 2005-09-05 10:40:23.000000000 -0500 >@@ -154,6 +154,8 @@ > def outofdateerror(): > error("The version of the esearch index is out of date, please run " + green("eupdatedb")) > >+if sys.stdout.isatty() == 0: >+ nocolor() > > try: > sys.path.append(esearchdbdir)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 104932
: 67690