import os
import sys
-lib_dir = os.path.normpath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir))
-sys.path.append(lib_dir) # for bkmk_objects.py
-
try:
import cPickle
pickle = cPickle
from subproc import RecordFile
+lib_dir = os.path.normpath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir))
+sys.path.append(lib_dir) # for bkmk_objects.py
+
def run():
bkmk_in = RecordFile(sys.stdin)
import sys
import httplib
+from bkmk_objects import Bookmark
+from Writers.bkmk_wflad import strftime
+
HTTP = httplib.HTTP
httplib.HTTP = MyHTTP
-from bkmk_objects import Bookmark
-from Writers.bkmk_wflad import strftime
-
def run():
print("Broytman check_url, Copyright (C) 2010-2023 PhiloSoft Design")
import codecs
-
-universal_charset = "utf-8"
-DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic
-
-parsers = []
+import os
try:
from . import bkmk_ph_beautifulsoup4
import re
from htmlentitydefs import name2codepoint
+universal_charset = "utf-8"
+DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic
+
+parsers = []
+
entity_re = re.compile("(&\w+;)")
num_entity_re = re.compile("(&#[0-9]+;)")
return ''.join(output)
-import os
BKMK_DEBUG_HTML_PARSERS = os.environ.get("BKMK_DEBUG_HTML_PARSERS")