From 3640bc05404eaeb6dc74e9af0bf8fb680fa061bb Mon Sep 17 00:00:00 2001 From: Alex Couper Date: Thu, 29 May 2014 00:40:06 +0000 Subject: [PATCH] Remove public argument for anon gist creation. --- docs/examples/gist.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/examples/gist.rst b/docs/examples/gist.rst index 2153ea6a7..c137122d4 100644 --- a/docs/examples/gist.rst +++ b/docs/examples/gist.rst @@ -46,7 +46,7 @@ Creating an anonymous gist 'content': 'What... is the air-speed velocity of an unladen swallow?' } } - gist = create_gist('Answer this to cross the bridge', files, public=False) + gist = create_gist('Answer this to cross the bridge', files) comments = [c for c in gist.iter_comments()] # [] comment = gist.create_comment('Bogus. This will not work.') @@ -59,3 +59,5 @@ file type based on extension provided. ``'What... is the air-speed velocity of an unladen swallow?'`` is the file's content or body. ``'Answer this to cross the bridge'`` is the gists's description. While required by github3.py, it is allowed to be empty, e.g., ``''`` is accepted by GitHub. + +Note that anonymous gists are always public.