summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-30 07:45:36 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-30 07:45:36 -0400
commit241263e552a2c054c51fd01796ee9deb67641c32 (patch)
treeaca783fe67fb721c8186da83b64209c1bc383b25 /gpscap.py
parent5b9b1669e8fccddddca7b41b95d29cb9a6565e20 (diff)
downloadgpsd-241263e552a2c054c51fd01796ee9deb67641c32.tar.gz
Better handling of discontinued attribute.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpscap.py b/gpscap.py
index 49eaea62..9bf5eeb9 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -97,7 +97,7 @@ class GPSDictionary(ConfigParser.RawConfigParser):
namefield = dev
if self.has_option(dev, "techdoc"):
namefield = "<a href='%s'>%s</a>" % (self.get(dev, "techdoc"), dev)
- if self.has_option(dev, "discontinued"):
+ if self.has_option(dev, "discontinued") and self.getboolean(dev, "discontinued"):
namefield = namefield + "&nbsp;<img title='Device discontinued' src='discontinued.png' alt='Discontinued icon'>"
ofp.write("<td>%s</td>\n" % namefield)
ofp.write("<td>%s</td>\n" % self.get(dev, "packaging"))