MCPcopy Create free account
hub / github.com/apache/storm / __init__

Method __init__

dev-tools/github/__init__.py:98–103  ·  view source on GitHub ↗
(self, options)

Source from the content-addressed store, hash-verified

96 """Github API"""
97
98 def __init__(self, options):
99 self.headers = {}
100 if options.gituser:
101 gitpassword = getpass.getpass("github.com user " + options.gituser + ":")
102 authstr = base64.encodestring('%s:%s' % (options.gituser, gitpassword)).replace('\n', '')
103 self.headers["Authorization"] = "Basic " + authstr
104
105 def pulls(self, user, repo, type="all"):
106 page = 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected