summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/tools/onbld/Checks/DbLookups.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/tools/onbld/Checks/DbLookups.py b/usr/src/tools/onbld/Checks/DbLookups.py
index 1173c12eae..955206750f 100644
--- a/usr/src/tools/onbld/Checks/DbLookups.py
+++ b/usr/src/tools/onbld/Checks/DbLookups.py
@@ -26,12 +26,12 @@
# Copyright 2010, Richard Lowe
# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
+# Copyright (c) 2019, Joyent, Inc.
#
# Various database lookup classes/methods, i.e.:
-# * monaco
-# * bugs.opensolaris.org (b.o.o.)
# * redmine (illumos.org)
+# * smartos
#
import re
@@ -82,11 +82,11 @@ class BugDB(object):
def __smartosbug(self, cr):
url = "http://smartos.org/bugview/json/%s" % cr
- req = urllib2.Request(url)
+ req = Request(url)
try:
- data = urllib2.urlopen(req)
- except urllib2.HTTPError, e:
+ data = urlopen(req)
+ except HTTPError, e:
if e.code == 404 or e.code == 403 or e.code == 400:
raise NonExistentBug(cr)
else: