/usr/lib/python2.7/dist-packages/html2text/compat.py is in python-html2text 2016.9.19-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import sys
if sys.version_info[0] == 2:
import htmlentitydefs
import urlparse
import HTMLParser
import urllib
from cgi import escape as html_escape
else:
import urllib.parse as urlparse
import html.entities as htmlentitydefs
import html.parser as HTMLParser
import urllib.request as urllib
from html import escape
def html_escape(s):
return escape(s, quote=False)
|