~xnox/ubuntu-archive-tools/built-using

« back to all changes in this revision

Viewing changes to copy-report

  • Committer: Colin Watson
  • Date: 2013-06-03 16:04:13 UTC
  • Revision ID: cjwatson@canonical.com-20130603160413-uup239jlfxj0hbx3
copy-report: use os.devnull

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    upstream_version = re_no_epoch.sub('', version)
100
100
    upstream_version = re_strip_revision.sub('', upstream_version)
101
101
 
102
 
    with open('/dev/null', 'w') as devnull:
 
102
    with open(os.devnull, 'w') as devnull:
103
103
        ret = subprocess.call(
104
104
            ['dpkg-source', '-q', '--no-check', '-sn', '-x', dsc],
105
105
            stdout=devnull, cwd=tempdir)