Project

General

Profile

Actions

Bug #12171

closed

pbchk traceback when checking .java file under python3

Added by Andy Fiddaman over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Traceback (most recent call last):
  File "/data/omnios-build/omniosorg/bloody/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/git-pbchk", line 460, in <module>
    main(os.path.basename(sys.argv[0]), sys.argv[1:])
  File "/data/omnios-build/omniosorg/bloody/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/git-pbchk", line 452, in main
    pbchk(git_root(), parent_branch, None)
  File "/data/omnios-build/omniosorg/bloody/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/git-pbchk", line 419, in pbchk
    run_checks(root, parent, cmds, scmds)
  File "/data/omnios-build/omniosorg/bloody/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/git-pbchk", line 375, in run_checks
    output=s)
  File "/data/omnios-build/omniosorg/bloody/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/git-pbchk", line 284, in jstyle
    ret |= JStyle.jstyle(fh, output=output, picky=True)
  File "/data/omnios-build/omniosorg/bloody/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/../lib/python3.5/onbld/Checks/JStyle.py", line 54, in jstyle
    ret, tmpfile = processcheck('jstyle', options, fh, output)
  File "/data/omnios-build/omniosorg/bloody/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/../lib/python3.5/onbld/Checks/ProcessCheck.py", line 63, in processcheck
    p.stdin.write(line)
TypeError: a bytes-like object is required, not 'str'

Actions

Also available in: Atom PDF