summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 11:28:14 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 11:28:14 +0000
commitcf4c50ffa68ce110c40ae3926d60b241bbe230c2 (patch)
tree1dae677b2d805395e4a35d9230e3a299b166f681
parent15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf (diff)
downloadportage-cf4c50ffa68ce110c40ae3926d60b241bbe230c2.tar.gz
portage-cf4c50ffa68ce110c40ae3926d60b241bbe230c2.tar.bz2
portage-cf4c50ffa68ce110c40ae3926d60b241bbe230c2.zip
Support print() function with Python 2 in some files.
svn path=/main/trunk/; revision=14291
-rwxr-xr-xbin/archive-conf2
-rwxr-xr-xbin/check-implicit-pointer-usage.py3
-rwxr-xr-xbin/clean_locks2
-rwxr-xr-xbin/dispatch-conf2
-rwxr-xr-xbin/ebuild2
-rwxr-xr-xbin/ebuild-helpers/dohtml2
-rwxr-xr-xbin/egencache2
-rwxr-xr-xbin/emaint3
-rwxr-xr-xbin/emerge2
-rwxr-xr-xbin/env-update5
-rwxr-xr-xbin/fixpackages2
-rwxr-xr-xbin/glsa-check2
-rwxr-xr-xbin/portageq2
-rwxr-xr-xbin/quickpkg6
-rwxr-xr-xbin/regenworld2
-rwxr-xr-xbin/repoman2
-rwxr-xr-xpym/portage/tests/runTests1
17 files changed, 40 insertions, 2 deletions
diff --git a/bin/archive-conf b/bin/archive-conf
index 227bcece2..8a028f9b0 100755
--- a/bin/archive-conf
+++ b/bin/archive-conf
@@ -10,6 +10,8 @@
# Jeremy Wohl's dispatch-conf script and the portage chkcontents script.
#
+from __future__ import print_function
+
import sys
try:
import portage
diff --git a/bin/check-implicit-pointer-usage.py b/bin/check-implicit-pointer-usage.py
index c50424b83..65b0d1228 100755
--- a/bin/check-implicit-pointer-usage.py
+++ b/bin/check-implicit-pointer-usage.py
@@ -13,6 +13,9 @@
# interpreted as pointers. Those are almost guaranteed to cause
# crashes.
#
+
+from __future__ import print_function
+
import re
import sys
diff --git a/bin/clean_locks b/bin/clean_locks
index eaeedda33..95698322c 100755
--- a/bin/clean_locks
+++ b/bin/clean_locks
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
+
import sys, errno
try:
import portage
diff --git a/bin/dispatch-conf b/bin/dispatch-conf
index 2ef55a908..f2228d37c 100755
--- a/bin/dispatch-conf
+++ b/bin/dispatch-conf
@@ -12,6 +12,8 @@
# dialog menus
#
+from __future__ import print_function
+
if not hasattr(__builtins__, "set"):
from sets import Set as set
diff --git a/bin/ebuild b/bin/ebuild
index fa7c3d536..43beb3149 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
+
import sys
# This block ensures that ^C interrupts are handled quietly.
try:
diff --git a/bin/ebuild-helpers/dohtml b/bin/ebuild-helpers/dohtml
index f672a9a0c..71cbb6293 100755
--- a/bin/ebuild-helpers/dohtml
+++ b/bin/ebuild-helpers/dohtml
@@ -29,6 +29,8 @@
# - will do as 'dohtml -r', but ignore directories named CVS, SCCS, RCS
#
+from __future__ import print_function
+
import os
import sys
diff --git a/bin/egencache b/bin/egencache
index 6c46896c0..3af060ef8 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
+
import sys
# This block ensures that ^C interrupts are handled quietly.
try:
diff --git a/bin/emaint b/bin/emaint
index 2dd6d1407..56a6617b0 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -1,5 +1,8 @@
#!/usr/bin/python -O
# vim: noet :
+
+from __future__ import print_function
+
import re
import signal
import sys
diff --git a/bin/emerge b/bin/emerge
index fca852d02..522135fcd 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
+
import sys
# This block ensures that ^C interrupts are handled quietly.
try:
diff --git a/bin/env-update b/bin/env-update
index 912602f7b..396dc4471 100755
--- a/bin/env-update
+++ b/bin/env-update
@@ -3,7 +3,10 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-import sys, errno
+from __future__ import print_function
+
+import errno
+import sys
def usage(status):
print("Usage: env-update [--no-ldconfig]")
diff --git a/bin/fixpackages b/bin/fixpackages
index a85277f0e..50135345a 100755
--- a/bin/fixpackages
+++ b/bin/fixpackages
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
+
import os,sys
os.environ["PORTAGE_CALLER"]="fixpackages"
try:
diff --git a/bin/glsa-check b/bin/glsa-check
index d1fdb2070..6516a1d91 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
+
import sys
try:
diff --git a/bin/portageq b/bin/portageq
index 0e26be01c..6a0ec5eb0 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
+
import sys
# This block ensures that ^C interrupts are handled quietly.
try:
diff --git a/bin/quickpkg b/bin/quickpkg
index 496a68325..f885fff05 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -3,7 +3,11 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-import errno, signal, sys
+from __future__ import print_function
+
+import errno
+import signal
+import sys
from itertools import izip
try:
diff --git a/bin/regenworld b/bin/regenworld
index ae359cf38..de082db41 100755
--- a/bin/regenworld
+++ b/bin/regenworld
@@ -5,6 +5,8 @@
# NOTE: this file does not respect ROOT
+from __future__ import print_function
+
import sys
try:
import portage
diff --git a/bin/repoman b/bin/repoman
index 52f15780c..2f0068ccd 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -7,6 +7,8 @@
# Then, check to make sure deps are satisfiable (to avoid "can't find match for" problems)
# that last one is tricky because multiple profiles need to be checked.
+from __future__ import print_function
+
import codecs
import commands
import errno
diff --git a/pym/portage/tests/runTests b/pym/portage/tests/runTests
index 55e07c514..5f42e29dc 100755
--- a/pym/portage/tests/runTests
+++ b/pym/portage/tests/runTests
@@ -4,6 +4,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+from __future__ import print_function
import os, sys
import os.path as osp