Skip to content

Commit e586949

Browse files
authored
Merge pull request sigmavirus24#937 from stevennyman/patch-1
Docs: Update contents to file_contents
2 parents 892f5ab + 977647d commit e586949

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,5 @@ Contributors
178178
- James E. Blair (@jeblair)
179179

180180
- Simon Westphahl (@westphahl)
181+
182+
- Steven Nyman (@stevennyman)

docs/source/examples/github.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Create a commit to change an existing file
126126

127127
::
128128

129-
repo.contents('/README.md').update('commit message', 'file content'.encode('utf-8'))
129+
repo.file_contents('/README.md').update('commit message', 'file content'.encode('utf-8'))
130130

131131
Follow another user on GitHub
132132
-----------------------------

0 commit comments

Comments
 (0)