diff options
author | Johan Dahlberg <johan.dahlberg@electrumab.se> | 2018-04-13 10:11:22 +0200 |
---|---|---|
committer | Johan Dahlberg <johan.dahlberg@electrumab.se> | 2018-04-13 10:11:22 +0200 |
commit | 3ac49add592e07c97ed4b6b8e4e7816e46e89310 (patch) | |
tree | b8886708406d9b2d8f8f0aaab1152493e1c56913 | |
parent | 9012f893a1091ed2f3f18ec469a86a8878de86d2 (diff) | |
download | google-styleguide-3ac49add592e07c97ed4b6b8e4e7816e46e89310.tar.gz |
Fixed _root_debug related crash
-rwxr-xr-x | cpplint/cpplint.py | 8 |
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) |