summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-05-30 13:37:56 -0500
committerGitHub <noreply@github.com>2017-05-30 13:37:56 -0500
commitd9d5135ec9f1ef71fa6604406a2efe46668821ea (patch)
tree680a1b4f23c8d31fa023292ad181969bc7922c13 /lib
parent336d988cc6bad73bc582789c278bdeb2d770def2 (diff)
downloadspack-d9d5135ec9f1ef71fa6604406a2efe46668821ea.tar.gz
spack-d9d5135ec9f1ef71fa6604406a2efe46668821ea.tar.bz2
spack-d9d5135ec9f1ef71fa6604406a2efe46668821ea.tar.xz
spack-d9d5135ec9f1ef71fa6604406a2efe46668821ea.zip
Fix spack info bug for Python 3 (#4391)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py
index 62de5484af..f0cddad2e2 100644
--- a/lib/spack/spack/cmd/info.py
+++ b/lib/spack/spack/cmd/info.py
@@ -25,7 +25,7 @@
from __future__ import print_function
import textwrap
-import itertools
+from six.moves import zip_longest
from llnl.util.tty.colify import *
import spack
import spack.fetch_strategy as fs
@@ -119,7 +119,7 @@ class VariantFormatter(object):
v.description,
width=self.column_widths[2]
)
- for t in itertools.izip_longest(
+ for t in zip_longest(
name, allowed, description, fillvalue=''
):
yield " " + self.fmt % t