#12 DeprecationWarning (PEP 0263)

closed-fixed
nobody
None
5
2006-07-19
2004-03-23
No

/usr/lib/python2.3/site-packages/Xlib/display.py:30:
DeprecationWarning: Non-ASCII character '\xf6' in file
/usr/lib/python2.3/site-packages/Xlib/protocol/display.py
on line 749, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
import protocol.display
(it's just a name ;))

Discussion

  • Logged In: NO

    I tried adding an encoding line to display.py using utf-8 as
    the encoding. It didn't seem to help. Does anyone know where
    there's a list of python encoding types? Both for the
    pep-0263 encoding lines and for the encode and decode string
    methods?
    calroc at mindspring.com

     
  • Mike Grant
    Mike Grant
    2006-07-19

    • status: open --> closed-fixed
     
  • Mike Grant
    Mike Grant
    2006-07-19

    Logged In: YES
    user_id=1175208

    Fixed in CVS with:

    # -*- coding: latin-1 -*-