def __getattr__(self, name):
        """ Map standard library attribute names to local attribute names,
        for compatibility.
        """
        try:
            return {
                "isocalendar": self.iso_calendar,
                "isoformat": self.iso_format,
                "isoweekday": self.iso_weekday,
                "strftime": self.__format__,
                "toordinal": self.to_ordinal,
                "timetuple": self.time_tuple,
            }[name]
        except KeyError:
            raise AttributeError("Date has no attribute %r" % name)
def __getattr__ ( self , name ) : try : return { "isocalendar" : self . iso_calendar , "isoformat" : self . iso_format , "isoweekday" : self . iso_weekday , "strftime" : self . __format__ , "toordinal" : self . to_ordinal , "timetuple" : self . time_tuple , } [ name ] except KeyError : raise AttributeError ( "Date has no attribute %r" % name )
Map standard library attribute names to local attribute names,
        for compatibility.