MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / find_encoding_py2

Function find_encoding_py2

aura/analyzers/python_src_inspector.py:144–151  ·  view source on GitHub ↗
(fd_readline)

Source from the content-addressed store, hash-verified

142
143
144def find_encoding_py2(fd_readline):
145 m = ENCODING_REGEX.match(fd_readline())
146 if not m:
147 m = ENCODING_REGEX.match(fd_readline())
148 if not m:
149 return "utf-8"
150 else:
151 return m.groupdict()["encoding"]
152
153
154def get_encoding(path):

Callers 1

get_encodingFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected