Skip to content

Commit 5d25fa9

Browse files
committed
Remove unused bpython.inspection.get_encoding_comment
1 parent 5a68b0e commit 5d25fa9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

bpython/inspection.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,6 @@ def get_encoding(obj):
329329
return "ascii"
330330

331331

332-
def get_encoding_comment(source):
333-
"""Returns encoding line without the newline, or None is not found"""
334-
for line in source.splitlines()[:2]:
335-
m = get_encoding_line_re.search(line)
336-
if m:
337-
return m.group(0)
338-
return None
339-
340-
341332
def get_encoding_file(fname):
342333
"""Try to obtain encoding information from a Python source file."""
343334
with open(fname, "rt", encoding="ascii", errors="ignore") as f:

0 commit comments

Comments
 (0)