mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Fix python bindings with versions older than 2.7
Need fixing on the Capsule usage, the lack of PyBytes, lack of io module and the way to access exception details.
This commit is contained in:
@@ -42,7 +42,7 @@ badexprs = (
|
||||
for expr in badexprs:
|
||||
try:
|
||||
ctxt.xpathEval(expr)
|
||||
except libxml2.xpathError as e:
|
||||
except libxml2.xpathError:
|
||||
pass
|
||||
else:
|
||||
print("Unexpectedly legal expression:", expr)
|
||||
|
||||
Reference in New Issue
Block a user