On Sun, Dec 24, 2017 at 01:23:56PM +0000, José Abílio Matos wrote: > On Sunday, 24 December 2017 02.50.07 WET Scott Kostyshak wrote: > > I changed <<ur">> to <<u">> at b798347, otherwise I get a > > "SyntaxError: invalid syntax" from Python. > > > > Can someone please confirm that's the correct fix? (I am not experienced > > in Python). > > > > Scott > > Your change is only half correct. :-) > > The problem comes because you should be using python3 where since 3.4 ur"..." > string literals > are not supported. > > https://stackoverflow.com/questions/26063899/python-version-3-4-does-not-support-a-ur-prefix > > If you remove the r prefix (that means that the backslashes were not escaped) > then to > compensate we need to double the backslashes: > > So the string should become: u"(\\\\twohyphens|\\\\threehyphens)" > > This is needed to escape the python string and the regular expressions.
Thanks, José! Fix committed at 713fd70e. > Season greetings to all :-) Happy holidays! Scott
signature.asc
Description: PGP signature