MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / generate_credits

Function generate_credits

doc/project/generate_credits.py:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def generate_credits():
79 text = subprocess.check_output(['git', 'shortlog', '--summary'])
80 lines = text.decode('utf8').split('\n')
81 contributors = [line.split('\t', 1)[1].strip() for line in lines if line]
82 contributors.sort(key=locale.strxfrm)
83 with open('credits.rst', 'w') as f:
84 f.write(TEMPLATE.format(contributors=',\n'.join(contributors)))
85
86
87if __name__ == '__main__':

Callers 1

Calls 2

joinMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…