summaryrefslogtreecommitdiffstats
path: root/Lib/_strptime.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_strptime.py')
-rw-r--r--Lib/_strptime.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index 0777b7e..81c105f 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -374,10 +374,10 @@ class TimeRE(dict):
def pattern(self, format):
"""Return re pattern for the format string.
-
+
Need to make sure that any characters that might be interpreted as
regex syntax is escaped.
-
+
"""
processed_format = ''
# The sub() call escapes all characters that might be misconstrued
@@ -528,4 +528,3 @@ def _insensitiveindex(lst, findme):
return key
else:
raise ValueError("value not in list")
-