def __init__(self, locale_time=None):
        """Create keys/values.
        
        Order of execution is important for dependency reasons.
        
        """
        if locale_time:
            self.locale_time = locale_time
        else:
            self.locale_time = LocaleTime()
        base = UserDict.UserDict
        base.__init__(self, {
            # The " \d" part of the regex is to make %c from ANSI C work
            'd': r"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])",
            'H': r"(?P<H>2[0-3]|[0-1]\d|\d)",
            'I': r"(?P<I>1[0-2]|0[1-9]|[1-9])",
'j': r"(?P<j>36[0-6]|3[0-5]\d|[1-2]\d\d|0[1-9]\d|00[1-9]|[1-9]\d|0[1-9]|[1-9])",
            'm': r"(?P<m>1[0-2]|0[1-9]|[1-9])",
            'M': r"(?P<M>[0-5]\d|\d)",
            'S': r"(?P<S>6[0-1]|[0-5]\d|\d)",
            'U': r"(?P<U>5[0-3]|[0-4]\d|\d)",
            'w': r"(?P<w>[0-6])",
            # W is set below by using 'U'
            'y': r"(?P<y>\d\d)",
            #XXX: Does 'Y' need to worry about having less or more than
            #     4 digits?
            'Y': r"(?P<Y>\d\d\d\d)",
            'A': self.__seqToRE(self.locale_time.f_weekday, 'A'),
            'a': self.__seqToRE(self.locale_time.a_weekday, 'a'),
            'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'),
            'b': self.__seqToRE(self.locale_time.a_month[1:], 'b'),
            'p': self.__seqToRE(self.locale_time.am_pm, 'p'),
            '%': '%'})
        temp_list = []
        for tz_names in self.locale_time.timezone:
            for tz in tz_names.keys():
                temp_list.append(tz)
        base.__setitem__(self, 'Z', self.__seqToRE(temp_list, 'Z'))
        base.__setitem__(self, 'W', base.__getitem__(self, 'U'))
        base.__setitem__(self, 'c', self.pattern(self.locale_time.LC_date_time))
        base.__setitem__(self, 'x', self.pattern(self.locale_time.LC_date))
        base.__setitem__(self, 'X', self.pattern(self.locale_time.LC_time))
Create keys/values.
        
        Order of execution is important for dependency reasons.
        
        
recipes/Python/56036_Pure_Python_strptime/recipe-56036.py