Skip to content

Commit

Permalink
Fix deprecation warning - html.escape instead cgi.escape
Browse files Browse the repository at this point in the history
  • Loading branch information
vafliik committed Oct 29, 2018
1 parent 5fd3187 commit c579afc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# History

## 3.0.8 (2018-10-29)
## 3.0.9 (2018-10-29)
* Deprecation warning fix

## 3.0.7 (2018-10-25)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import sys

VERSION = '3.0.8'
VERSION = '3.0.9'

with open('README.md', encoding='utf-8') as readme_file:
readme = readme_file.read()
Expand Down
6 changes: 4 additions & 2 deletions shishito/reporting/junithtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from py.xml import html
from py.xml import raw

from html import escape




Expand Down Expand Up @@ -309,10 +311,10 @@ def _append_stacktrace_section(log, report):
else:
exception = line.startswith("E ")
if exception:
stacktrace_p.append(html.span(raw(html.escape(line)),
stacktrace_p.append(html.span(raw(escape(line)),
class_='error'))
else:
stacktrace_p.append(raw(html.escape(line)))
stacktrace_p.append(raw(escape(line)))
stacktrace_p.append(html.br())
log.append(stacktrace_p)

Expand Down

0 comments on commit c579afc

Please sign in to comment.