def printenv(self, argv):
        """printenv [name ...]
    Shows the shell environment that processes will run with.  """
        if len(argv) == 1:
            names = self._environ.keys()
            names.sort()
            ms = reduce(max, map(len, names))
            for name in names:
                value = self._environ[name]
                self._print("%*s = %s" % (ms, name, safe_repr(value)))
        else:
            s = []
            for name in argv[1:]:
                try:
                    s.append("%s = %s" % (name, safe_repr(self._environ[name])))
                except __HOLE__:
                    pass
            self._print("\n".join(s))
dataset/ETHPy150Open kdart/pycopia/fepy/pycopia/fepy/CLI.py/BaseCommands.printenv