Serhiy Storchaka added the comment: It will fail on: "#coding=0" I'm wondering why findall() is used to match this regexp. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18873> _______________________________________