]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
enum: remove unused function (#132044)
authorInada Naoki <songofacandy@gmail.com>
Tue, 8 Apr 2025 00:23:48 +0000 (09:23 +0900)
committerGitHub <noreply@github.com>
Tue, 8 Apr 2025 00:23:48 +0000 (09:23 +0900)
Lib/enum.py

index ee963d6a7e67d1d3bb02cd82bbdf587e12981dd0..b5f3ca7ae111d6266e2d7ad2ce714d4844b4dc7a 100644 (file)
@@ -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>')