mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-19 22:31:07 +00:00
Wrap long lines.
This commit is contained in:
parent
19c33e5e32
commit
dfdbce7108
@ -31,12 +31,12 @@ from debian.debian_support import Version
|
||||
|
||||
from devscripts.logger import Logger
|
||||
|
||||
from ubuntutools.archive import SourcePackage, DebianSourcePackage, \
|
||||
UbuntuSourcePackage, DownloadError, rmadison
|
||||
from ubuntutools.archive import (SourcePackage, DebianSourcePackage,
|
||||
UbuntuSourcePackage, DownloadError, rmadison)
|
||||
from ubuntutools.config import UDTConfig, ubu_email
|
||||
from ubuntutools.builder import get_builder
|
||||
from ubuntutools.misc import system_distribution, vendor_to_distroinfo, \
|
||||
codename_to_distribution
|
||||
from ubuntutools.misc import (system_distribution, vendor_to_distroinfo,
|
||||
codename_to_distribution)
|
||||
from ubuntutools.question import YesNoQuestion
|
||||
from ubuntutools import subprocess
|
||||
|
||||
|
@ -18,14 +18,16 @@ import subprocess
|
||||
|
||||
from subprocess import PIPE, STDOUT, CalledProcessError
|
||||
|
||||
__all__ = ['Popen', 'call', 'check_call', 'check_output', 'CalledProcessError', 'PIPE', 'STDOUT']
|
||||
__all__ = ['Popen', 'call', 'check_call', 'check_output', 'CalledProcessError',
|
||||
'PIPE', 'STDOUT']
|
||||
|
||||
|
||||
class Popen(subprocess.Popen):
|
||||
def __init__(self, *args, **kwargs):
|
||||
kwargs.setdefault('close_fds', True)
|
||||
|
||||
if 'restore_signals' not in inspect.getargspec(subprocess.Popen.__init__)[0]:
|
||||
if ('restore_signals' not in
|
||||
inspect.getargspec(subprocess.Popen.__init__)[0]):
|
||||
given_preexec_fn = kwargs.pop('preexec_fn', None)
|
||||
restore_signals = kwargs.pop('restore_signals', True)
|
||||
def preexec_fn():
|
||||
|
Loading…
x
Reference in New Issue
Block a user