[Python-Dev] Python 2.3b1, distutils and PEP 263

Guido van Rossum guido@python.org
Fri, 27 Jun 2003 07:04:18 -0400


> For quite a long time, I noticed that Distutils inserts a supplementary
> white line when it transforms the shebang line.  There might be some reason
> for this white line, and I'm curious about it.  This does not interact
> nicely with PEP 263.  For example, the file:
> 
> ---------------------------------------------------------------------->
> #!/usr/bin/env python
> # -*- coding: Latin-1 -*-
> 
> """\
> [...]
> ----------------------------------------------------------------------<
> 
> get installed by Distutils as:
> 
> ---------------------------------------------------------------------->
> #!/usr/bin/python
> 
> # -*- coding: Latin-1 -*-
> 
> """\
> [...]
> ----------------------------------------------------------------------<
> 
> and Python 2.3b1 does not see the `coding:' pragma on the third line.

This should be easy to fix in CVS.

Who can do it?

--Guido van Rossum (home page: http://www.python.org/~guido/)