diff options
-rw-r--r-- | Lib/_strptime.py | 9 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-05-16-12-32-48.bpo-33541.kQORPE.rst | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py index c8f2f94e55..f4f3c0b80c 100644 --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -77,15 +77,6 @@ class LocaleTime(object): 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. diff --git a/Misc/NEWS.d/next/Library/2018-05-16-12-32-48.bpo-33541.kQORPE.rst b/Misc/NEWS.d/next/Library/2018-05-16-12-32-48.bpo-33541.kQORPE.rst new file mode 100644 index 0000000000..137189849e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-05-16-12-32-48.bpo-33541.kQORPE.rst @@ -0,0 +1,2 @@ +Remove unused private method ``_strptime.LocaleTime.__pad`` (a.k.a. +``_LocaleTime__pad``). |