mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
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 <clalancette@openrobotics.org>
This commit is contained in:
parent
9c6b371f41
commit
a8dd33f1bf
4
cpplint/cpplint.py
vendored
4
cpplint/cpplint.py
vendored
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user