File: https.py

package info (click to toggle)
dput 0.9.6.1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 232 kB
  • ctags: 109
  • sloc: python: 1,487; makefile: 61; sh: 24
file content (7 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
# Bit of a hack, really dput should add /usr/share/dput to the import path.
d = {}
exec open("/usr/share/dput/http.py") in d
real_upload = d["upload"]

def upload(fqdn, login, incoming, files_to_upload, debug, dummy, progress=0):
    return real_upload(fqdn, login, incoming, files_to_upload, debug, dummy, progress, protocol="https")