diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-21 00:11:18 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-21 16:00:50 -0700 |
commit | 48b35bb495bc154c64d23d1ad364506c4572b913 (patch) | |
tree | c7c7fc443b14e685bae26940fae4c09420af82ed /lib | |
parent | 861a235ecb65e8ed08c1762b8ae03c516142a460 (diff) | |
download | spack-48b35bb495bc154c64d23d1ad364506c4572b913.tar.gz spack-48b35bb495bc154c64d23d1ad364506c4572b913.tar.bz2 spack-48b35bb495bc154c64d23d1ad364506c4572b913.tar.xz spack-48b35bb495bc154c64d23d1ad364506c4572b913.zip |
Fix print function in uninstall.py
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/uninstall.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/spack/spack/cmd/uninstall.py b/lib/spack/spack/cmd/uninstall.py index 1ece838612..350ef372cb 100644 --- a/lib/spack/spack/cmd/uninstall.py +++ b/lib/spack/spack/cmd/uninstall.py @@ -22,6 +22,7 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## +from __future__ import print_function import sys import argparse @@ -63,12 +64,12 @@ def uninstall(parser, args): matching_specs = spack.installed_db.query(spec) if not args.all and len(matching_specs) > 1: tty.error("%s matches multiple packages:" % spec) - print + print() display_specs(matching_specs, long=True) - print - print "You can either:" - print " a) Use a more specific spec, or" - print " b) use spack uninstall -a to uninstall ALL matching specs." + print() + print("You can either:") + print(" a) Use a more specific spec, or") + print(" b) use spack uninstall -a to uninstall ALL matching specs.") sys.exit(1) if len(matching_specs) == 0: |