From e2b35ee22950bc5dc5410606f2e94a56b3454020 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 8 Apr 2025 09:23:48 +0900 Subject: enum: remove unused function (#132044) --- Lib/enum.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Lib/enum.py b/Lib/enum.py index ee963d6..b5f3ca7 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('') -- cgit v0.12