Support python 2 raw_input v2.0.17
authorMike Pagano <mpagano@gentoo.org>
Wed, 4 Jan 2012 14:28:14 +0000 (09:28 -0500)
committerMike Pagano <mpagano@gentoo.org>
Wed, 4 Jan 2012 14:28:14 +0000 (09:28 -0500)
portpeek

index 3706a5675f3058002d6a76ed3d6b255f7678ad79..9b2d4140f02691f7fb2d1a2bc888aedfc225d2fb 100755 (executable)
--- a/portpeek
+++ b/portpeek
@@ -16,7 +16,7 @@
 
 __author__ = "Michael Pagano"
 __email__ = "mpagano@gentoo.org"
-__version__ = "2.0.16"
+__version__ = "2.0.17"
 __productname__ = "portpeek"
 __description__ = "Displays user unmasked ebuilds and installable options from the portage tree"
 
@@ -29,6 +29,12 @@ from gentoolkit.cpv import CPV
 from gentoolkit.query import Query
 from gentoolkit.flag import get_flags
 
+# support python 2
+try:
+    input = raw_input
+except NameError:
+    pass
+
 porttree = portage.db[portage.root]["porttree"]
 settings = portage.config(clone=portage.settings)