/srv/irclogs.ubuntu.com/2018/10/30/#launchpad.txt

nacccjwatson: fair enough :)03:26
tewardcjwatson: well i've got tsimonq2 being adamant "But the regex is verbatim and i'm not changing it because that's what the system says"15:09
tewardwhereas some of my python checkers are complaining :p15:09
tewardwasn't sure if it was critical or not.15:09
tewardnacc: not if you pass the pattern as a raw string - r"pattern#goes#here" apparently.15:09
cjwatsonThis is really not critical15:10
cjwatsonRemove the backslash or not, I don't care15:10
tewardyep, i was just being overly complaining because i was reviewing one of Lubuntu's irc bots' code as a favor :)15:11
tewardno problem.  *goes back to working on things*15:11
cjwatsonAnd it has nothing to do with whether the pattern is passed as a raw string15:11
cjwatsonComment support is controlled by the re.X == re.VERBOSE flag15:12
cjwatsonIf anyone wants the regex to change, they can propose an MP changing it in lib/lp/soyuz/enums.py15:12
cjwatsonI've got no problem with that but won't be spending my own time on it15:13
tsimonq2teward: Do that before messing with Lubuntu's regex. :P15:13
tewardcjwatson: do we enable re.X though?  I thought we didn't enable that?15:17
teward*drags tsimonq2 through the mud anyways*15:17
tewardbecause it looks to me we don't enable re.X in enums.py :P15:19
teward(and I prefer NOT having that enabled unless necessary lol)15:19
cjwatsonWe do not15:19
cjwatsonI wasn't saying we did15:19
tewardi'm not awake yet heh :P15:20
tewardbut that answers the question :)15:20
cjwatsonJust that that's what governs whether # introduces a comment, not whether the pattern is passed as a raw string15:20
teward*goes for more coffee*15:20
tewardah I see15:20

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!