MCPcopy Create free account
hub / github.com/ipython/ipython / iter_fields

Function iter_fields

tools/gh_api.py:210–216  ·  view source on GitHub ↗
(fields)

Source from the content-addressed store, hash-verified

208# The only change is to iter_fields, to enforce S3's required key ordering
209
210def iter_fields(fields):
211 fields = fields.copy()
212 for key in ('key', 'acl', 'Filename', 'success_action_status', 'AWSAccessKeyId',
213 'Policy', 'Signature', 'Content-Type', 'file'):
214 yield (key, fields.pop(key))
215 for (k,v) in fields.items():
216 yield k,v
217
218def encode_multipart_formdata(fields, boundary=None):
219 """

Callers 1

Calls 2

popMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected