diff options
author | Ben Pfaff <blp@ovn.org> | 2019-01-10 15:23:45 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-01-11 08:45:04 -0800 |
commit | 145a7e88bbc71b65f4c5015436c9f086a19b5a4a (patch) | |
tree | 73a93c724bdceffa97580b97a7e33701a86d48fc /python/build | |
parent | 70506167a585e6334291de7a331324f0e58207ff (diff) | |
download | openvswitch-145a7e88bbc71b65f4c5015436c9f086a19b5a4a.tar.gz |
python: Fix invalid escape sequences.
It appears that Python silently treats invalid escape sequences in
strings as literals, e.g. "\." is the same as "\\.". Newer versions of
checkpatch complain, and it does seem reasonable to me to fix these.
Acked-by: Numan Siddique <nusiddiq@redhat.com>
Tested-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'python/build')
-rw-r--r-- | python/build/nroff.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/build/nroff.py b/python/build/nroff.py index 78e4eae6a..a94907757 100644 --- a/python/build/nroff.py +++ b/python/build/nroff.py @@ -274,7 +274,7 @@ def diagram_to_nroff(nodes, para): text_s = '.br\n'.join(["\\fL%s\n" % s for s in text if s != ""]) return para + """ .\\" check if in troff mode (TTY) -.if t \{ +.if t \\{ .PS boxht = .2 textht = 1/6 @@ -283,7 +283,7 @@ fillval = .2 .PE \\} .\\" check if in nroff mode: -.if n \{ +.if n \\{ .nf """ + text_s + """\ .fi |