(request, options)
| 31 | |
| 32 | |
| 33 | def add_options(request, options): |
| 34 | |
| 35 | for (key, value) in options.items(): |
| 36 | if value is None: |
| 37 | continue |
| 38 | try: |
| 39 | request.setopt(pycurl.__dict__[key], value) |
| 40 | except TypeError: |
| 41 | raise OptionNotValid(key, value) |
| 42 | except pycurl.error: |
| 43 | raise OptionNotValid(key, value) |
| 44 | |
| 45 | |
| 46 | def get_options(type, from_options): |