Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89a25ce

Browse files
mariocj89abalkin
authored andcommitted
bpo-33541: Remove unused __pad function (GH-4377)
Function was added with the initial implementation 00efe7e.
1 parent 0c4be82 commit 89a25ce

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

Lib/_strptime.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ def __init__(self):
7777
if time.tzname != self.tzname or time.daylight != self.daylight:
7878
raise ValueError("timezone changed during initialization")
7979

80-
def __pad(self, seq, front):
81-
# Add '' to seq to either the front (is True), else the back.
82-
seq = list(seq)
83-
if front:
84-
seq.insert(0, '')
85-
else:
86-
seq.append('')
87-
return seq
88-
8980
def __calc_weekday(self):
9081
# Set self.a_weekday and self.f_weekday using the calendar
9182
# module.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Remove unused private method ``_strptime.LocaleTime.__pad`` (a.k.a.
2+
``_LocaleTime__pad``).

0 commit comments

Comments
 (0)