mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
enum: remove unused function (#132044)
This commit is contained in:
parent
f5639d87f5
commit
e2b35ee229
1 changed files with 0 additions and 12 deletions
12
Lib/enum.py
12
Lib/enum.py
|
@ -150,18 +150,6 @@ def bin(num, max_bits=None):
|
||||||
digits = (sign[-1] * max_bits + digits)[-max_bits:]
|
digits = (sign[-1] * max_bits + digits)[-max_bits:]
|
||||||
return "%s %s" % (sign, digits)
|
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:
|
class _not_given:
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return('<not given>')
|
return('<not given>')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue