In <[EMAIL PROTECTED]>, Laurent Pointal wrote: > Roberto Bonvallet a écrit : >> # vim: set fileencoding=utf-8 : > ... >> # -*- coding: utf-8 -*- > ... >> About changing the shebang line: I'll take it as a bug. >> About changing the encoding declaration from vim-style to emacs-style: >> I'll take it as an insult :) > > This is not "emacs-style", this is Python normalized source encoding > directive for correct interpretation of u"..." strings by Python > interpreter. > > See http://www.python.org/dev/peps/pep-0263/
Where does it say it has to be emacs-style? It just uses that style as example as far as I can see. The real definition is a regexp: coding[:=]\s*([-\w.]+) So the vim-style is fine. No need to replace it. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list