Skip to content

Commit

Permalink
Fix the syntax highlighting in the example (#5276)
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Prewitt <[email protected]>
  • Loading branch information
ZhukovAlexander and nateprewitt authored Feb 18, 2020
1 parent 23f6faa commit e113020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ To do that, just set files to a list of tuples of ``(form_field_name, file_info)

>>> url = 'https://httpbin.org/post'
>>> multiple_files = [
('images', ('foo.png', open('foo.png', 'rb'), 'image/png')),
('images', ('bar.png', open('bar.png', 'rb'), 'image/png'))]
... ('images', ('foo.png', open('foo.png', 'rb'), 'image/png')),
... ('images', ('bar.png', open('bar.png', 'rb'), 'image/png'))]
>>> r = requests.post(url, files=multiple_files)
>>> r.text
{
Expand Down

0 comments on commit e113020

Please sign in to comment.