MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / fix

Method fix

scripts/fix_headers.py:124–136  ·  view source on GitHub ↗
(self, filename, lines)

Source from the content-addressed store, hash-verified

122
123class StandardHeader:
124 def fix(self, filename, lines):
125 newLines = []
126
127 for line in generateLicenseSection(filename):
128 newLines.append(line)
129
130 bodyLines = extractBodyLines(lines)
131
132 if len(bodyLines) > 0 and bodyLines[0] != "":
133 newLines.append("")
134 newLines += bodyLines
135
136 return newLines
137
138
139def findHeadersAndFiles():

Callers

nothing calls this directly

Calls 2

generateLicenseSectionFunction · 0.85
extractBodyLinesFunction · 0.85

Tested by

no test coverage detected