summaryrefslogtreecommitdiff
path: root/usr/src/tools/onbld/Checks/Comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/tools/onbld/Checks/Comments.py')
-rw-r--r--usr/src/tools/onbld/Checks/Comments.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/src/tools/onbld/Checks/Comments.py b/usr/src/tools/onbld/Checks/Comments.py
index 5d6feb265a..14e1f4a9da 100644
--- a/usr/src/tools/onbld/Checks/Comments.py
+++ b/usr/src/tools/onbld/Checks/Comments.py
@@ -26,12 +26,13 @@
#
# Copyright 2007, 2010 Richard Lowe
+# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
#
# Check delta comments:
-# - Have the correct form.
-# - Have a synopsis matching that of the bug
-# - Appear only once.
+# - Have the correct form.
+# - Have a synopsis matching that of the bug
+# - Appear only once.
#
import re, sys
@@ -113,9 +114,9 @@ def comchk(comments, check_db=True, output=sys.stderr):
if len(bugs) > 0 and check_db:
bugdb = BugDB()
- results = bugdb.lookup(bugs.keys())
+ results = bugdb.lookup(list(bugs.keys()))
- for crid, insts in bugs.iteritems():
+ for crid, insts in bugs.items():
if len(insts) > 1:
errors['dup'].append(crid)