https://github.com/python/cpython/commit/e2b35ee22950bc5dc5410606f2e94a56b3454020 commit: e2b35ee22950bc5dc5410606f2e94a56b3454020 branch: main author: Inada Naoki <songofaca...@gmail.com> committer: methane <songofaca...@gmail.com> date: 2025-04-08T09:23:48+09:00 summary:
enum: remove unused function (#132044) files: M Lib/enum.py diff --git a/Lib/enum.py b/Lib/enum.py index ee963d6a7e67d1..b5f3ca7ae111d6 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -150,18 +150,6 @@ def bin(num, max_bits=None): digits = (sign[-1] * max_bits + digits)[-max_bits:] return "%s %s" % (sign, digits) -def _dedent(text): - """ - Like textwrap.dedent. Rewritten because we cannot import textwrap. - """ - lines = text.split('\n') - for i, ch in enumerate(lines[0]): - if ch != ' ': - break - for j, l in enumerate(lines): - lines[j] = l[i:] - return '\n'.join(lines) - class _not_given: def __repr__(self): return('<not given>') _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com