Commits

Anonymous committed 18a1f05

Use logger.indent instead of printing spaces.

Comments (0)

Files changed (1)

pip/commands/search.py

             logger.notify(line)
             if name in installed_packages:
                 dist = pkg_resources.get_distribution(name)
-                logger.notify('  INSTALLED: %s' % dist.version)
-                logger.notify('  LATEST: %s' % highest_version(hit['versions']))
+                logger.indent += 2
+                try:
+                    logger.notify('INSTALLED: %s' % dist.version)
+                    logger.notify('LATEST: %s' % highest_version(hit['versions']))
+                finally:
+                    logger.indent -= 2
         except UnicodeEncodeError:
             pass