summaryrefslogtreecommitdiff
path: root/usr/src/tools/onbld/Checks
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/tools/onbld/Checks')
-rw-r--r--usr/src/tools/onbld/Checks/DbLookups.py2
-rw-r--r--usr/src/tools/onbld/Checks/Makefile4
-rw-r--r--usr/src/tools/onbld/Checks/py2/Makefile45
3 files changed, 2 insertions, 49 deletions
diff --git a/usr/src/tools/onbld/Checks/DbLookups.py b/usr/src/tools/onbld/Checks/DbLookups.py
index 83a60a64dc..d396a68cbc 100644
--- a/usr/src/tools/onbld/Checks/DbLookups.py
+++ b/usr/src/tools/onbld/Checks/DbLookups.py
@@ -86,7 +86,7 @@ class BugDB(object):
try:
data = urlopen(req)
- except HTTPError, e:
+ except HTTPError as e:
if e.code == 404 or e.code == 403 or e.code == 400:
raise NonExistentBug(cr)
else:
diff --git a/usr/src/tools/onbld/Checks/Makefile b/usr/src/tools/onbld/Checks/Makefile
index b6f18bdf85..1cdd9926f7 100644
--- a/usr/src/tools/onbld/Checks/Makefile
+++ b/usr/src/tools/onbld/Checks/Makefile
@@ -27,9 +27,7 @@
include ../../Makefile.tools
-SUBDIRS=
-$(BUILDPY2TOOLS)SUBDIRS += py2
-$(BUILDPY3TOOLS)SUBDIRS += py3
+SUBDIRS=py3
all := TARGET= all
install := TARGET= install
diff --git a/usr/src/tools/onbld/Checks/py2/Makefile b/usr/src/tools/onbld/Checks/py2/Makefile
deleted file mode 100644
index 40b2b41255..0000000000
--- a/usr/src/tools/onbld/Checks/py2/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-# Copyright 2010, Richard Lowe
-# Copyright 2014 Garrett D'Amore <garrett@damore.org>
-# Copyright 2016, Joyent, Inc.
-# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
-
-include ../Makefile.com
-
-PYVER = $(PYTHON_VERSION)
-PYPKGVERS = $(PYTHON_PKGVERS)
-PYOBJS = $(PYSRCS:%.py=%.pyc)
-
-include ../../../Makefile.python
-
-all: $(PYVERSOJBS)
-
-install: all $(ROOTPYFILES)
-
-clean:
-
-clobber: clean pyclobber