~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/python/release.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-01-16 19:56:10 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060116195610-ykmxbia4mnnod9o2
Tags: 2.1.0-0ubuntu2
debian/copyright: Include copyright for python 2.3; some 2.3 files
are included in the upstream tarball, but not in the binary packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
# utilities
25
25
 
26
 
def sh(command, null=True):#, sensitive=0):
 
26
def sh(command, null=True, prompt=False):
27
27
    """
28
 
    I'll try to execute `command', and if `sensitive' is true, I'll
 
28
    I'll try to execute `command', and if `prompt' is true, I'll
29
29
    ask before running it.  If the command returns something other
30
30
    than 0, I'll raise CommandFailed(command).
31
31
    """
32
32
    print "--$", command
33
33
 
34
 
    if True:#debug:# or sensitive:
 
34
    if prompt:
35
35
        if raw_input("run ?? ").startswith('n'):
36
36
            return
37
37
    if null: