mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
bpo-33541: Remove unused __pad function (GH-4377)
Function was added with the initial implementation 00efe7e798.
This commit is contained in:
parent
0c4be82890
commit
89a25ce4fd
2 changed files with 2 additions and 9 deletions
|
|
@ -77,15 +77,6 @@ def __init__(self):
|
|||
if time.tzname != self.tzname or time.daylight != self.daylight:
|
||||
raise ValueError("timezone changed during initialization")
|
||||
|
||||
def __pad(self, seq, front):
|
||||
# Add '' to seq to either the front (is True), else the back.
|
||||
seq = list(seq)
|
||||
if front:
|
||||
seq.insert(0, '')
|
||||
else:
|
||||
seq.append('')
|
||||
return seq
|
||||
|
||||
def __calc_weekday(self):
|
||||
# Set self.a_weekday and self.f_weekday using the calendar
|
||||
# module.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
Remove unused private method ``_strptime.LocaleTime.__pad`` (a.k.a.
|
||||
``_LocaleTime__pad``).
|
||||
Loading…
Add table
Add a link
Reference in a new issue