MCPcopy Create free account
hub / github.com/ActiveState/code / get_revision

Function get_revision

recipes/Python/576598_Utility_Mill_Test/recipe-576598.py:34–40  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

32 return child.nodeValue
33
34def get_revision(name):
35 string = info_utility('xml', name)
36 middle = string.split('<', 1)[1].rsplit('>', 1)[0]
37 dom = xml.dom.minidom.parseString('<' + middle + '>')
38 value = extract_number(dom)
39 dom.unlink()
40 return value
41
42def info_utility(api, name):
43 url = 'http://utilitymill.com/api/{0}/utility/{1}/info'

Callers 1

test_latestFunction · 0.85

Calls 5

info_utilityFunction · 0.85
parseStringMethod · 0.80
unlinkMethod · 0.80
extract_numberFunction · 0.70
splitMethod · 0.45

Tested by 1

test_latestFunction · 0.68