summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2016-09-13 17:35:12 +0200
committerDavid Seifert <soap@gentoo.org>2016-09-18 15:27:28 +0200
commite8cd854727fc5473d8189e44425fbe5f993c3102 (patch)
tree106261d2b54650b83666558bdc8fae303874b809 /dev-python/genshi
parentdev-python/logbook: remove unused patch (diff)
downloadgentoo-e8cd854727fc5473d8189e44425fbe5f993c3102.tar.gz
gentoo-e8cd854727fc5473d8189e44425fbe5f993c3102.tar.bz2
gentoo-e8cd854727fc5473d8189e44425fbe5f993c3102.zip
dev-python/genshi: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/2322 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-python/genshi')
-rw-r--r--dev-python/genshi/files/genshi-0.6-html_test.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/dev-python/genshi/files/genshi-0.6-html_test.patch b/dev-python/genshi/files/genshi-0.6-html_test.patch
deleted file mode 100644
index 4f74d6b999f5..000000000000
--- a/dev-python/genshi/files/genshi-0.6-html_test.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-Add/Change #501 (test_sanitize_remove_src_javascript fails due to HTMLParser bugfixes in cpython)
-Add/Change #500 (test_sanitize_remove_script_elem fails due to HTMLParser bugfixes in cpython)
---- a/genshi/filters/tests/html.py
-+++ b/genshi/filters/tests/html.py
-@@ -365,9 +365,12 @@
- self.assertEquals('', (html | HTMLSanitizer()).render())
- html = HTML('<SCRIPT SRC="http://example.com/"></SCRIPT>')
- self.assertEquals('', (html | HTMLSanitizer()).render())
-- self.assertRaises(ParseError, HTML, '<SCR\0IPT>alert("foo")</SCR\0IPT>')
-- self.assertRaises(ParseError, HTML,
-- '<SCRIPT&XYZ SRC="http://example.com/"></SCRIPT>')
-+ html = HTML('<SCR\0IPT>alert("foo")</SCR\0IPT>')
-+ self.assertEquals('&lt;SCR\x00IPT&gt;alert("foo")',
-+ (html | HTMLSanitizer()).render())
-+ html = HTML('<SCRIPT&XYZ SRC="http://example.com/"></SCRIPT>')
-+ self.assertEquals('&lt;SCRIPT&amp;XYZ; SRC="http://example.com/"&gt;',
-+ (html | HTMLSanitizer()).render())
-
- def test_sanitize_remove_onclick_attr(self):
- html = HTML('<div onclick=\'alert("foo")\' />')
-
---- a/genshi/filters/tests/html.py
-+++ b/genshi/filters/tests/html.py
-@@ -437,9 +440,9 @@
- # Case-insensitive protocol matching
- html = HTML('<IMG SRC=\'JaVaScRiPt:alert("foo")\'>')
- self.assertEquals('<img/>', (html | HTMLSanitizer()).render())
-- # Grave accents (not parsed)
-- self.assertRaises(ParseError, HTML,
-- '<IMG SRC=`javascript:alert("RSnake says, \'foo\'")`>')
-+ # Grave accents.
-+ html = HTML('<IMG SRC=`javascript:alert("RSnake says, \'foo\'")`>')
-+ self.assertEquals('<img/>', (html | HTMLSanitizer()).render())
- # Protocol encoded using UTF-8 numeric entities
- html = HTML('<IMG SRC=\'&#106;&#97;&#118;&#97;&#115;&#99;&#114;&#105;'
- '&#112;&#116;&#58;alert("foo")\'>')
-