From a8dd33f1bf99bc93d7caf6032c2cdf65293ae205 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 7 Jun 2019 09:54:38 -0400 Subject: [PATCH] Escape backslashes in pydoc strings. This is to get rid of DeprecationWarning when running under modern Python 3 with warnings enabled. Signed-off-by: Chris Lalancette --- cpplint/cpplint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index 65baa6c..094f703 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -189,7 +189,7 @@ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...] Example file: filter=-build/include_order,+build/include_alpha - exclude_files=.*\.cc + exclude_files=.*\\.cc The above example disables build/include_order warning and enables build/include_alpha as well as excludes all .cc from being @@ -1114,7 +1114,7 @@ class FileInfo(object): If we have a real absolute path name here we can try to do something smart: detecting the root of the checkout and truncating /path/to/checkout from the name so that we get header guards that don't include things like - "C:\Documents and Settings\..." or "/home/username/..." in them and thus + "C:\\Documents and Settings\\..." or "/home/username/..." in them and thus people on different computers who have checked the source out to different locations won't see bogus errors. """