original_docstring:  Formats a datetime object to an ISO string. Timezone naive datetimes are
          are treated as UTC Zulu. UTC Zulu is expressed with the proper "Z"
          ending and not with the "+00:00" offset declaration.
  
          :param dt: the :class:`datetime.datetime` to encode
          :returns: an encoded string
      
docstring: Formats a datetime object to an ISO string. Timezone naive datetimes are
  are treated as UTC Zulu. UTC Zulu is expressed with the proper "Z"
  ending and not with the "+00:00" offset declaration.
docstring_tokens: Formats a datetime object to an ISO string . Timezone naive datetimes are are treated as UTC Zulu . UTC Zulu is expressed with the proper " Z " ending and not with the " + 00 : 00 " offset declaration .
code: def isoformat(dt):
      """ Formats a datetime object to an ISO string. Timezone naive datetimes are
          are treated as UTC Zulu. UTC Zulu is expressed with the proper "Z"
          ending and not with the "+00:00" offset declaration.
  
          :param dt: the :class:`datetime.datetime` to encode
          :returns: an encoded string
      """
      if not dt.utcoffset():
          dt = dt.replace(tzinfo=None)
          return dt.isoformat("T") + "Z"
      return dt.isoformat("T")
code_tokens: def isoformat ( dt ) : if not dt . utcoffset ( ) : dt = dt . replace ( tzinfo = None ) return dt . isoformat ( "T" ) + "Z" return dt . isoformat ( "T" )
short_docstring: Formats a datetime object to an ISO string.
short_docstring_tokens: Formats a datetime object to an ISO string .
comment: """ Formats a datetime object to an ISO string. Timezone naive datetimes are
          are treated as UTC Zulu. UTC Zulu is expressed with the proper "Z"
          ending and not with the "+00:00" offset declaration.
  
          :param dt: the :class:`datetime.datetime` to encode
          :returns: an encoded string
      """