From: Inada Naoki Date: Tue, 8 Apr 2025 00:23:48 +0000 (+0900) Subject: enum: remove unused function (#132044) X-Git-Tag: v3.14.0a7~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2b35ee22950bc5dc5410606f2e94a56b3454020;p=thirdparty%2FPython%2Fcpython.git enum: remove unused function (#132044) --- diff --git a/Lib/enum.py b/Lib/enum.py index ee963d6a7e67..b5f3ca7ae111 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('')