[Git][security-tracker-team/security-tracker][master] bin/lts-cve-triage.py: Correct undefined reference to `colored` when stdout is not a TTY
Chris Lamb
lamby at debian.org
Mon Aug 5 09:41:28 BST 2019
Chris Lamb pushed to branch master at Debian Security Tracker / security-tracker
Commits:
22a5da58 by Chris Lamb at 2019-08-05T08:40:34Z
bin/lts-cve-triage.py: Correct undefined reference to `colored` when stdout is not a TTY
- - - - -
1 changed file:
- bin/lts-cve-triage.py
Changes:
=====================================
bin/lts-cve-triage.py
=====================================
@@ -23,6 +23,13 @@ from tracker_data import TrackerData, RELEASES
from unsupported_packages import UnsupportedPackages, LimitedSupportPackages
+def colored(x, *args, **kwargs):
+ return x
+
+
+colored_on = False
+
+
try:
if sys.stdout.isatty():
from termcolor import colored # noqa
@@ -30,10 +37,7 @@ try:
except ImportError:
print("Note: you can install python3-termcolor for colored output",
file=sys.stderr)
- colored_on = False
- def colored(x, *args, **kwargs):
- return x
TRACKER_URL = 'https://security-tracker.debian.org/tracker/'
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/22a5da5866b0ad4c680d00538b3db3cf729e5e7a
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/22a5da5866b0ad4c680d00538b3db3cf729e5e7a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20190805/d0a733e6/attachment.html>
More information about the debian-security-tracker-commits
mailing list