Skip to content

Commit 3ac49ad

Browse files
author
Johan Dahlberg
committed
Fixed _root_debug related crash
1 parent 9012f89 commit 3ac49ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpplint/cpplint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,8 +1852,8 @@ def StripListPrefix(lst, prefix):
18521852
PathSplitToList(_root))
18531853

18541854
if _root_debug:
1855-
sys.stderr.write("_root lstrip (maybe_path=%s, file_path_from_root=%s," +
1856-
" _root=%s)\n" %(maybe_path, file_path_from_root, _root))
1855+
sys.stderr.write(("_root lstrip (maybe_path=%s, file_path_from_root=%s," +
1856+
" _root=%s)\n") %(maybe_path, file_path_from_root, _root))
18571857

18581858
if maybe_path:
18591859
return os.path.join(*maybe_path)
@@ -1866,8 +1866,8 @@ def StripListPrefix(lst, prefix):
18661866
PathSplitToList(root_abspath))
18671867

18681868
if _root_debug:
1869-
sys.stderr.write("_root prepend (maybe_path=%s, full_path=%s, " +
1870-
"root_abspath=%s)\n" %(maybe_path, full_path, root_abspath))
1869+
sys.stderr.write(("_root prepend (maybe_path=%s, full_path=%s, " +
1870+
"root_abspath=%s)\n") %(maybe_path, full_path, root_abspath))
18711871

18721872
if maybe_path:
18731873
return os.path.join(*maybe_path)

0 commit comments

Comments
 (0)