From 551f29c9c54b89cef63af3d25cf4bd20e6ebb65c Mon Sep 17 00:00:00 2001 From: David Medina Date: Tue, 3 Apr 2012 23:45:28 +0200 Subject: Mimetype example in doc --- docs/services.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/services.rst b/docs/services.rst index e686a6e..71fa690 100644 --- a/docs/services.rst +++ b/docs/services.rst @@ -53,6 +53,16 @@ attributes or all of them. .. autoclass:: pygithub3.services.base.MimeTypeMixin :members: +**Fast example**:: + + from pygithub3 import Github + + gh = Github() + + gh.gists.comments.set_html() + comment = gh.gists.comments.list(1).all()[0] + print comment.body, comment.body_text, comment.body_html + List of services ------------------- -- cgit v1.2.3-59-g8ed1b