From 3ac49add592e07c97ed4b6b8e4e7816e46e89310 Mon Sep 17 00:00:00 2001 From: Johan Dahlberg Date: Fri, 13 Apr 2018 10:11:22 +0200 Subject: [PATCH] Fixed _root_debug related crash --- cpplint/cpplint.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index fb34e11eb..9eb7e6a09 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -1852,8 +1852,8 @@ def StripListPrefix(lst, prefix): PathSplitToList(_root)) if _root_debug: - sys.stderr.write("_root lstrip (maybe_path=%s, file_path_from_root=%s," + - " _root=%s)\n" %(maybe_path, file_path_from_root, _root)) + sys.stderr.write(("_root lstrip (maybe_path=%s, file_path_from_root=%s," + + " _root=%s)\n") %(maybe_path, file_path_from_root, _root)) if maybe_path: return os.path.join(*maybe_path) @@ -1866,8 +1866,8 @@ def StripListPrefix(lst, prefix): PathSplitToList(root_abspath)) if _root_debug: - sys.stderr.write("_root prepend (maybe_path=%s, full_path=%s, " + - "root_abspath=%s)\n" %(maybe_path, full_path, root_abspath)) + sys.stderr.write(("_root prepend (maybe_path=%s, full_path=%s, " + + "root_abspath=%s)\n") %(maybe_path, full_path, root_abspath)) if maybe_path: return os.path.join(*maybe_path)