changeset 8913:7a4e2c6ec02f stable

setup: support Bleach 4.2 for Python 3.10 support Changelog shows no significant API changes. Bleach 3.2 and later are however even more unreasonably paranoid than 3.1, and the test thus has to be updated and we stop supporting 3.1 .
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 28 Sep 2021 14:40:55 +0200
parents 7ef14c1fe99f
children 5f4a108eed54
files kallithea/lib/markup_renderer.py setup.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/markup_renderer.py	Tue Sep 28 13:58:58 2021 +0200
+++ b/kallithea/lib/markup_renderer.py	Tue Sep 28 14:40:55 2021 +0200
@@ -117,7 +117,7 @@
         At last it will just do a simple html replacing new lines with <br/>
 
         >>> MarkupRenderer.render('''<img id="a" style="margin-top:-1000px;color:red" src="http://example.com/test.jpg">''', '.md')
-        '<p><img id="a" src="http://example.com/test.jpg" style="color: red;"></p>'
+        '<p><img id="a" src="http://example.com/test.jpg" style=""></p>'
         >>> MarkupRenderer.render('''<img class="c d" src="file://localhost/test.jpg">''', 'b.mkd')
         '<p><img class="c d"></p>'
         >>> MarkupRenderer.render('''<a href="foo">foo</a>''', 'c.mkdn')
--- a/setup.py	Tue Sep 28 13:58:58 2021 +0200
+++ b/setup.py	Tue Sep 28 14:40:55 2021 +0200
@@ -66,7 +66,7 @@
     "mercurial >= 5.2, < 5.9",
     "decorator >= 4.2.1, < 4.5",
     "Paste >= 2.0.3, < 3.5",
-    "bleach >= 3.0, < 3.1.4",
+    "bleach >= 3.2, < 4.2",
     "Click >= 7.0, < 8",
     "ipaddr >= 2.2.0, < 2.3",
     "paginate >= 0.5, < 0.6",