diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-27 10:02:47 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-27 10:02:47 +0100 |
commit | 6f1a4923e3c8314639a2b946285f2108edee9a31 (patch) | |
tree | 63fafac1f923fb35f34b9dfaeac6f7f8b4566323 /src/lxml/isoschematron | |
parent | 690da3b30781e1430324015fd8075502826b08d1 (diff) | |
download | python-lxml-6f1a4923e3c8314639a2b946285f2108edee9a31.tar.gz |
avoid using deprecated API function
Diffstat (limited to 'src/lxml/isoschematron')
-rw-r--r-- | src/lxml/isoschematron/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lxml/isoschematron/__init__.py b/src/lxml/isoschematron/__init__.py index 538d8606..3f354587 100644 --- a/src/lxml/isoschematron/__init__.py +++ b/src/lxml/isoschematron/__init__.py @@ -299,7 +299,8 @@ class Schematron(_etree._Validator): # Does svrl report the line number, anywhere? Don't think so. self._append_log_message( domain=self._domain, type=self._error_type, - level=self._level, line=0, message=_etree.tounicode(error), + level=self._level, line=0, + message=_etree.tostring(error, encoding='unicode'), filename=fname) return False return True |