Browse Source

fix DeprecationWarning: invalid escape sequence \e

pull/254/head
oliverpool 8 years ago
parent
commit
cede0444fc
  1. 2
      patacrep/authors.py

2
patacrep/authors.py

@ -33,7 +33,7 @@ def split_author_names(string):
>>> split_author_names("Edgar Allan Poe") >>> split_author_names("Edgar Allan Poe")
('Poe', 'Edgar Allan') ('Poe', 'Edgar Allan')
>>> split_author_names("Edgar Allan \emph {Poe}") >>> split_author_names("Edgar Allan \\emph {Poe}")
('{Poe}', 'Edgar Allan \\emph') ('{Poe}', 'Edgar Allan \\emph')
>>> split_author_names(r"The Rolling\ Stones") >>> split_author_names(r"The Rolling\ Stones")
('Rolling~Stones', 'The') ('Rolling~Stones', 'The')

Loading…
Cancel
Save