Function split_body references variable before assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Low
|
scoder |
Bug Description
Hi!
Function split_body in `lxml/html/
```
# python2 -m lxml.html.diff /dev/null{,}
Traceback (most recent call last):
File "/usr/lib64/
"__main__", fname, loader, pkg_name)
File "/usr/lib64/
exec code in run_globals
File "/usr/lib64/
_diffcomman
File "/usr/lib64/
body1 = split_body(
File "/usr/lib64/
return pre, html, post
UnboundLocalError: local variable 'pre' referenced before assignment
```
Best, Sebastian
Changed in lxml: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/lxml/ lxml/commit/ 9ccbce92e706a1d 28f3f98ce06f46f 579910ff2a