Permalink
Browse files

bpo-33541: Remove unused __pad function (GH-4377)

Function was added with the initial implementation 00efe7e.
  • Loading branch information...
mariocj89 authored and abalkin committed May 20, 2018
1 parent 0c4be82 commit 89a25ce4fdb9c2a1a59d8cbfc498a2614b98e9ae
Showing with 2 additions and 9 deletions.
  1. +0 −9 Lib/_strptime.py
  2. +2 −0 Misc/NEWS.d/next/Library/2018-05-16-12-32-48.bpo-33541.kQORPE.rst
View
@@ -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``).

0 comments on commit 89a25ce

Please sign in to comment.