~stefanor/ubuntu-dev-tools/sponsor-patch-quilt

« back to all changes in this revision

Viewing changes to dgetlp

  • Committer: Stefano Rivera
  • Author(s): Evan Broder
  • Date: 2011-06-24 14:32:07 UTC
  • mfrom: (1091.1.2 fix-785854)
  • Revision ID: stefanor@ubuntu.com-20110624143207-9k1ssdk706nlqz1h
* ubuntutools.subprocess:
  - New drop-in replacement wrapper module around subprocess that
    backports the restore_signals kwarg and defaults close_fds=True
  - Switch everything previously using subprocess to use
    ubuntutools.subprocess instead (LP: #785854)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import hashlib
33
33
import optparse
34
34
import os
35
 
import subprocess
36
35
import sys
37
36
import urllib2
38
37
 
43
42
                          "use this utility.")
44
43
    sys.exit(1)
45
44
 
 
45
from ubuntutools import subprocess
 
46
 
46
47
USAGE = u"""Usage: %prog [-d|(-v|-q)] <Launchpad URL>
47
48
 
48
49
This scripts simulates «dget»'s behaviour for files hosted at