]> granicus.if.org Git - python/commitdiff
bpo-33541: Remove unused __pad function (GH-4377)
authorMario Corchero <mariocj89@gmail.com>
Sun, 20 May 2018 17:42:30 +0000 (13:42 -0400)
committerAlexander Belopolsky <abalkin@users.noreply.github.com>
Sun, 20 May 2018 17:42:30 +0000 (13:42 -0400)
Function was added with the initial implementation 00efe7e798.

Lib/_strptime.py
Misc/NEWS.d/next/Library/2018-05-16-12-32-48.bpo-33541.kQORPE.rst [new file with mode: 0644]

index c8f2f94e5500cf0c72e0d962db2a7462717c4c52..f4f3c0b80c1d05bbf383f74d8ee233a1b9e41cab 100644 (file)
@@ -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 (file)
index 0000000..1371898
--- /dev/null
@@ -0,0 +1,2 @@
+Remove unused private method ``_strptime.LocaleTime.__pad`` (a.k.a.
+``_LocaleTime__pad``).