Skip to content
Myr

Fix the syntax highlighting in the example (#5276)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alexander Zhukov · committed by GitHub · parent 23f6faa · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com>

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/user/advanced.rst+2 added-2 removed
393 unmodified lines
394To do that, just set files to a list of tuples of ``(form_field_name, file_info)``::395396 >>> url = 'https://httpbin.org/post'397 >>> multiple_files = [398 ('images', ('foo.png', open('foo.png', 'rb'), 'image/png')),399 ('images', ('bar.png', open('bar.png', 'rb'), 'image/png'))]398 ... ('images', ('foo.png', open('foo.png', 'rb'), 'image/png')),399 ... ('images', ('bar.png', open('bar.png', 'rb'), 'image/png'))]400 >>> r = requests.post(url, files=multiple_files)401 >>> r.text402 {403 ...
629 unmodified lines