MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / parse_updates

Function parse_updates

bleachbit/Update.py:122–130  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

120 return ()
121
122 def parse_updates(element):
123 if element:
124 ver = element[0].getAttribute('ver')
125 url = element[0].firstChild.data
126 assert isinstance(ver, str)
127 assert isinstance(url, str)
128 assert url.startswith('http')
129 return ver, url
130 return ()
131
132 stable = parse_updates(dom.getElementsByTagName("stable"))
133 beta = parse_updates(dom.getElementsByTagName("beta"))

Callers 1

check_updatesFunction · 0.85

Calls 1

getAttributeMethod · 0.45

Tested by

no test coverage detected