Deponentlanadigan materiallarning titul varag‘i
EHM uchun dastur (Ma’lumotlar bazasi) nomi:
"Texnologik jarayonlarni boshqarishda axborot texnalogiyalarini qo’llash" elektron darslik
Huquq ega(lar)si :
Pirnazarov Ulug’bek Umataliyevich____________________________
_________________________________________________________
_________________________________________________________
Muallif(lar):
Jo'rayev Dilshodbek Maxsutali o'g'li____________________________
_________________________________________________________
EHM uchun dasturni identifikatsiya qiluvchi materiallar dastlabki matni (Dastur kodi)
import io
import mimetypes
from lxml import etree
mimetype_initialised = False
def debug(obj):
import pprint
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(obj)
def parse_string(s):
parser = etree.XMLParser(recover=True, resolve_entities=False)
try:
tree = etree.parse(io.BytesIO(s.encode('utf-8')) , parser=parser)
except:
tree = etree.parse(io.BytesIO(s) , parser=parser)
return tree
def parse_html_string(s):
from lxml import html
utf8_parser = html.HTMLParser(encoding='utf-8')
html_tree = html.document_fromstring(s, parser=utf8_parser)
return html_tree
def guess_type(extenstion):
global mimetype_initialised
if not mimetype_initialised:
mimetypes.init()
mimetypes.add_type('application/xhtml+xml', '.xhtml')
mimetype_initialised = True
Do'stlaringiz bilan baham: |