mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
21 lines
501 B
Python
21 lines
501 B
Python
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)
|
|
|
|
|
|
__all__ = ['HTMLParser', 'html_escape', 'htmlentitydefs', 'urllib', 'urlparse']
|