8000 Remove public argument for anon gist creation. · staticdev/github4.py@3640bc0 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 3640bc0

Browse files
committed
Remove public argument for anon gist creation.
1 parent 27a4267 commit 3640bc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/examples/gist.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Creating an anonymous gist
4646
'content': 'What... is the air-speed velocity of an unladen swallow?'
4747
}
4848
}
49-
gist = create_gist('Answer this to cross the bridge', files, public=False)
49+
gist = create_gist('Answer this to cross the bridge', files)
5050
comments = [c for c in gist.iter_comments()]
5151
# []
5252
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
5959
an unladen swallow?'`` is the file's content or body. ``'Answer this to cross
6060
the bridge'`` is the gists's description. While required by github3.py, it is
6161
allowed to be empty, e.g., ``''`` is accepted by GitHub.
62+
63+
Note that anonymous gists are always public.

0 commit comments

Comments
 (0)
0