#NEWLINE# def _strptime( self , time_str ) : #NEWLINE# #INDENT# 'Convert an ISO 8601 formatted string to a datetime object.\n\n        We assume that the ISO 8601 formatted string is in UTC and we create\n        the datetime object so that it is timezone-aware.\n\n        :param str time_str: ISO 8601 formatted string\n        :returns: timezone-aware datetime object\n        :rtype: datetime or None\n        ' #NEWLINE# if time_str : #NEWLINE# #INDENT# dt = datetime . strptime ( time_str , __timeformat__ ) #NEWLINE# return dt . replace ( tzinfo = UTC ( ) ) #NEWLINE# #UNINDENT# return None