All pastes #884760 Raw Edit

Meins

public text v1 · immutable
#884760 ·published 2008-01-30 16:15 UTC
rendered paste body
In [1]: from xml.etree import ElementTree as ET

In [2]: hasattr(ET, 'XMLParser')
Out[2]: True

In [3]: ET.XMLParser(encoding='sth')
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/home/ben/dev/elisa/<ipython console> in <module>()

<type 'exceptions.TypeError'>: __init__() got an unexpected keyword argument 'encoding'

In [4]: