aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2018-04-13 12:13:45 -0700
committerGitHub <noreply@github.com>2018-04-13 12:13:45 -0700
commit1b206ee36263b16ec18f7b2f86a2b770b7490844 (patch)
treeb8886708406d9b2d8f8f0aaab1152493e1c56913
parent9012f893a1091ed2f3f18ec469a86a8878de86d2 (diff)
parent3ac49add592e07c97ed4b6b8e4e7816e46e89310 (diff)
downloadgoogle-styleguide-1b206ee36263b16ec18f7b2f86a2b770b7490844.tar.gz
Fixed _root_debug related crash. GH344
Merges pull request #344 from Johan-Dahlberg/fix_root_debug thanks!
-rwxr-xr-xcpplint/cpplint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py
index fb34e11..9eb7e6a 100755
--- a/cpplint/cpplint.py
+++ b/cpplint/cpplint.py
@@ -1852,8 +1852,8 @@ def GetHeaderGuardCPPVariable(filename):
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 GetHeaderGuardCPPVariable(filename):
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)