
    _Og
                     V    S r SSKJr  SSKJr  SSKJr   " S S\R
                  5      rg)z.Module containing the logic for a GistComment.   )
decorators)models)usersc                   l    \ rS rSrSrS rS r\R                  S 5       r	\R                  S 5       r
Srg)	GistComment   aY  Representation of a comment left on a :class:`~github3.gists.Gist`.

See also: http://developer.github.com/v3/gists/comments/

.. versionchanged:: 1.0.0

    The ``links``, ``html_url``, and ``pull_request_url`` attributes were
    removed as none of them exist in the response from GitHub.

This object has the following attributes:

.. attribute:: author_association

    The comment author's (:attr:`user`) association with this gist.

.. attribute:: body

    The markdown formatted original text written by the author.

.. attribute:: body_html

    The HTML formatted comment body.

.. attribute:: body_text

    The plain-text formatted comment body.

.. attribute:: created_at

    A :class:`~datetime.datetime` object representing the date and time
    when this comment was created.

.. attribute:: id

    The unique identifier for this comment.

.. attribute:: updated_at

    A :class:`~datetime.datetime` object representing the date and time
    when this comment was most recently updated.

.. attribute:: user

    A :class:`~github3.users.ShortUser` representing the author of this
    comment.
c                    US   U l         US   U l        US   U l        US   U l        US   U l        U R                  US   5      U l        US   U l        U R                  US   5      U l        [        R                  " US	   U 5      U l        g )
Nurlauthor_associationbody	body_html	body_text
created_atid
updated_atuser)_apir   r   r   r   	_strptimer   r   r   r   	ShortUserr   )selfcomments     Z/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/github3/gists/comment.py_update_attributesGistComment._update_attributes7   s    EN	")*>"?FO	 - -..)>?$-..)>?OOGFOT:	    c                 6    SU R                   R                   S3$ )Nz<Gist Comment [z]>)r   loginr   s    r   _reprGistComment._reprB   s      144r   c                 Z    U R                  U R                  U R                  5      SS5      $ )zgDelete this comment from the gist.

:returns:
    True if successful, False otherwise
:rtype:
    bool
   i  )_boolean_deleter   r   s    r   deleteGistComment.deleteE   s$     }}T\\$))4c3??r   c                     U(       aE  U R                  U R                  U R                  SU0S9S5      nU(       a  U R                  U5        gg)zEdit this comment.

:param str body:
    (required), new body of the comment, Markdown-formatted
:returns:
    True if successful, False otherwise
:rtype:
    bool
r   )json   TF)_json_patchr   r   )r   r   r(   s      r   editGistComment.editP   sH     ::DIIVTN;SD ''-r   )	r   r   r   r   r   r   r   r   r   N)__name__
__module____qualname____firstlineno____doc__r   r   r   requires_authr%   r,   __static_attributes__ r   r   r   r      sH    -^	;5 @ @  r   r   N)r2    r   r   r   
GitHubCorer   r5   r   r   <module>r8      s%    4   [&## [r   