| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When using a recent enough lxml, even Python 2.6 should work now. The
most important requirement is that the findall() function supports the
namespaces argument.
This also now catches all exceptions when parsing the PSKC file fails
and wraps it in ParseError because various implementations raise
different exceptions, even between versions (Python 2.6's ElementTree
raises ExpatError, lxml raises XMLSyntaxError).
|
|
|
|
|
|
|
|
| |
This changes the parse module functions to better match the ElementTree
API and extends it with findint(), findtime() and findbin().
It also passes the namespaces to all calls that require it without
duplicating this throughout the normal code.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This is the extension that is suggested in RFC6030.
|
|
|
|
| |
This also splits the parsing to a parse() function for consistency.
|
| |
|
|
|
|
|
|
|
|
|
| |
This class is used for handling PSKC files. It will parse the file and
store relevant properties for easy access. The Key class corresponds to
a single key defined in the PSKC file.
This is a very minimal implementation that only provides some meta-data
from the file and keys (work in progress).
|
|
|