Skip to content

Commit be6e9ca

Browse files
tkoeppecopybara-github
authored andcommitted
Fix missing raw string. The string literal would otherwise contain an invalid escape sequence.
PiperOrigin-RevId: 839358055
1 parent 0e030eb commit be6e9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/tensorflow_docs/api_generator/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def unescape(s):
642642
)
643643
if not good_first_line and match:
644644
groupdict = match.groupdict()
645-
brief = unescape(re.sub('\s+', ' ', groupdict['first_sentence']))
645+
brief = unescape(re.sub(r'\s+', ' ', groupdict['first_sentence']))
646646
docstring = unescape(groupdict['remainder'])
647647
else:
648648
# Use the first line

0 commit comments

Comments
 (0)