diff options
author | Balló György | 2019-03-27 19:19:51 +0100 |
---|---|---|
committer | Balló György | 2019-03-27 19:19:51 +0100 |
commit | 2716173db3fc94d3829ee066b4bca73d3440e646 (patch) | |
tree | 5687b8688b3242d718132c74adced22965eac15d /bs4-port.patch | |
parent | 6ddfdaafddbb7c1ea83c28cc99901df070f671a0 (diff) | |
download | aur-2716173db3fc94d3829ee066b4bca73d3440e646.tar.gz |
screenletsMove from [community] to AUR in connection with the semi-annual spring cleaning
Diffstat (limited to 'bs4-port.patch')
-rw-r--r-- | bs4-port.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bs4-port.patch b/bs4-port.patch new file mode 100644 index 000000000000..c9dae2ff1279 --- /dev/null +++ b/bs4-port.patch @@ -0,0 +1,21 @@ +diff -Naur screenlets-0.1.7.orig/src/lib/utils.py screenlets-0.1.7/src/lib/utils.py +--- screenlets-0.1.7.orig/src/lib/utils.py 2017-01-30 21:36:27.000000000 +0100 ++++ screenlets-0.1.7/src/lib/utils.py 2017-06-24 21:37:59.383230449 +0200 +@@ -33,7 +33,7 @@ + import subprocess + import commands + from HTMLParser import HTMLParser +-from BeautifulSoup import BeautifulStoneSoup ++from bs4 import BeautifulSoup + from xdg.BaseDirectory import * + + try: +@@ -98,7 +98,7 @@ + s = MLStripper() + s.feed(html) + no_html = s.get_data() +- decoded = BeautifulStoneSoup(no_html, convertEntities=BeautifulStoneSoup.HTML_ENTITIES) ++ decoded = BeautifulSoup(no_html).get_text() + result = decoded.encode("UTF-8") + return result.strip(" \n") + |