diff options
| author | John Levon <john.levon@joyent.com> | 2019-01-14 15:48:18 +0000 |
|---|---|---|
| committer | John Levon <john.levon@joyent.com> | 2019-01-14 16:20:55 +0000 |
| commit | ff1b696851b0f3c59776af146a4bc820f0e498f1 (patch) | |
| tree | f6cb47c54e50eb4ee65b30fd685e797b40675091 /usr/src | |
| parent | f9f91f24e6485d0445061fe4b6f0d256a59a6b37 (diff) | |
| download | illumos-joyent-ff1b696851b0f3c59776af146a4bc820f0e498f1.tar.gz | |
OS-7512 git pbchk needs updates after python3 changes
Reviewed by: Tim Foster <tim.foster@joyent.com>
Approved by: Tim Foster <tim.foster@joyent.com>
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/tools/onbld/Checks/DbLookups.py | 10 |
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: |
