noah <ngwood...@gmail.com> added the comment:

I was able to recreate the 'bad' output on Linux using 'bad' input.

The issue is caused when you misspell WHERE, regex is looking for the exact 
word "WHERE", any lowercase (where), multicase (WHeRe), or misspelling (WERE) 
is going to cause it to return None because regex didn't find a matching 
substring.

I also on a whim tested out a bunch of encodings before realizing it didn't run 
on bytes objects anyways, so really the only way to get this output is to 
misspell the input. I think this problem should probably be closed as it's not 
a bug with the python core.

----------
nosy: +ngwood111
status: pending -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34315>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to