putting copyright representation python file
i need consolidate copyright matter during tip each python source record i produce:
# copyright: © 2008 etc.
however, i following run such record i message:
syntaxerror: non-ascii impression '\xa9' record myfile.py line 3, nonetheless encoding declared; details.
apparently python isn't happy copyright representation since assumes source record ascii. presumably i need initial line be:
# -*- coding: iso-8859-1 -*-
to tell python i'm controlling latin encoding, i change copyright matter to:
# copyright: \xa9 2008 etc.
which only presumably doesn't have same authorised standing.
is there some-more glorious solution?
Comments
Post a Comment