From fd090eccbbaaee5e1f80886df7e6ddb27ad753e8 Mon Sep 17 00:00:00 2001 From: Moritz Schubotz Date: Thu, 27 Jun 2019 14:36:40 +0200 Subject: [PATCH] Update Repository.rst (#1118) the example confused me until I found https://github.com/PyGithub/PyGithub/issues/545 --- doc/examples/Repository.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/Repository.rst b/doc/examples/Repository.rst index 22205ae1..cb9e3e07 100644 --- a/doc/examples/Repository.rst +++ b/doc/examples/Repository.rst @@ -115,7 +115,7 @@ Create a new file in the repository .. code-block:: python >>> repo = g.get_repo("PyGithub/PyGithub") - >>> repo.create_file("test.txt", "test", "test", branch="test") + >>> repo.create_file("/test.txt", "test", "test", branch="test") {'content': ContentFile(path="test.txt"), 'commit': Commit(sha="5b584cf6d32d960bb7bee8ce94f161d939aec377")} Update a file in the repository