summaryrefslogtreecommitdiff
path: root/usr/src/tools/onbld/Checks/SpellCheck.py
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2019-02-05 23:57:11 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2019-02-09 21:43:47 +0000
commita90997d2f0a442a8aa8a56cbbbbf577716a18742 (patch)
tree929e591d7a7bd09176e63fb9208648874f5208cb /usr/src/tools/onbld/Checks/SpellCheck.py
parent1b58875ad7966cf2c85ee8e92f3da04f0a3b2f7a (diff)
downloadillumos-joyent-a90997d2f0a442a8aa8a56cbbbbf577716a18742.tar.gz
10347 git-pbchk requires more python3 fixes
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: C Fraire <cfraire@me.com> Reviewed by: John Levon <john.levon@joyent.com> Approved by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'usr/src/tools/onbld/Checks/SpellCheck.py')
-rw-r--r--usr/src/tools/onbld/Checks/SpellCheck.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/tools/onbld/Checks/SpellCheck.py b/usr/src/tools/onbld/Checks/SpellCheck.py
index bb89306cc7..0d07017846 100644
--- a/usr/src/tools/onbld/Checks/SpellCheck.py
+++ b/usr/src/tools/onbld/Checks/SpellCheck.py
@@ -21,7 +21,7 @@
#
# Copyright 2016 Joyent, Inc.
-# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
+# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
#
import re, sys
@@ -282,6 +282,7 @@ def spellcheck(fh, filename=None, output=sys.stderr, **opts):
fh.seek(0)
for line in fh:
+ line = line.decode(errors='replace')
for entry in misspellingREs:
ret |= check(spellMsg, output, filename, line,
lineno, entry)