[ python-Bugs-995206 ] Deprecation Warning lies when it cannot
parse your encoding
SourceForge.net
noreply at sourceforge.net
Wed Jul 21 15:20:27 CEST 2004
Bugs item #995206, was opened at 2004-07-21 14:48
Message generated for change (Comment added) made by lemburg
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=995206&group_id=5470
Category: None
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Laura Creighton (lcreighton)
Assigned to: Nobody/Anonymous (nobody)
Summary: Deprecation Warning lies when it cannot parse your encoding
Initial Comment:
The first line of my python file was:
# -*- coding: 'iso-8859-1' -*-
This is wrong, I need to drop the quotes. But Python
2.3.4 (#2, Jun 19 2004, 18:15:30) is wrong, also, when it
complains:
sys:1: DeprecationWarning: Non-ASCII character '\xf6'
in file test_stockdict.py on line 14, but no encoding
declared; see http://www.python.org/peps/pep-0263
----------------------------------------------------------------------
>Comment By: M.-A. Lemburg (lemburg)
Date: 2004-07-21 15:20
Message:
Logged In: YES
user_id=38388
I don't see why this should be wrong: if the parser cannot
parse the encoding comment, it simply ignores it and then
continues to work as if no encoding comment were given.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=995206&group_id=5470
More information about the Python-bugs-list
mailing list