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

Function info_utility

recipes/Python/576598_Utility_Mill_Test/recipe-576598.py:42–45  ·  view source on GitHub ↗
(api, name)

Source from the content-addressed store, hash-verified

40 return value
41
42def info_utility(api, name):
43 url = 'http://utilitymill.com/api/{0}/utility/{1}/info'
44 file = urllib.request.urlopen(url.format(api, name))
45 return file.read().decode()
46
47def extract_number(dom):
48 elements = dom.getElementsByTagName('number')

Callers 1

get_revisionFunction · 0.85

Calls 3

formatMethod · 0.45
decodeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected