diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 16:41:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 16:41:30 +0000 |
commit | 46f085e73a50962b0148676be4381241381b869b (patch) | |
tree | 9128bcdbb7e49debc17a85015421d7b1df8004d8 /pym | |
parent | Update system imports for compatibility with Python 3. (diff) | |
download | portage-multirepo-46f085e73a50962b0148676be4381241381b869b.tar.gz portage-multirepo-46f085e73a50962b0148676be4381241381b869b.tar.bz2 portage-multirepo-46f085e73a50962b0148676be4381241381b869b.zip |
Support print() function with Python 2 in more files.
svn path=/main/trunk/; revision=14295
Diffstat (limited to 'pym')
-rw-r--r-- | pym/_emerge/Scheduler.py | 2 | ||||
-rw-r--r-- | pym/_emerge/actions.py | 2 | ||||
-rw-r--r-- | pym/_emerge/countdown.py | 2 | ||||
-rw-r--r-- | pym/_emerge/depgraph.py | 2 | ||||
-rw-r--r-- | pym/_emerge/emergelog.py | 2 | ||||
-rw-r--r-- | pym/_emerge/help.py | 2 | ||||
-rw-r--r-- | pym/_emerge/main.py | 2 | ||||
-rw-r--r-- | pym/_emerge/search.py | 2 | ||||
-rw-r--r-- | pym/_emerge/unmerge.py | 2 | ||||
-rw-r--r-- | pym/_emerge/userquery.py | 2 | ||||
-rw-r--r-- | pym/portage/__init__.py | 2 | ||||
-rw-r--r-- | pym/portage/cache/util.py | 2 | ||||
-rw-r--r-- | pym/portage/cvstree.py | 2 | ||||
-rw-r--r-- | pym/portage/dbapi/porttree.py | 2 | ||||
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 | ||||
-rw-r--r-- | pym/portage/dispatch_conf.py | 2 | ||||
-rw-r--r-- | pym/portage/elog/mod_echo.py | 2 | ||||
-rw-r--r-- | pym/portage/sets/__init__.py | 2 | ||||
-rw-r--r-- | pym/portage/sets/libs.py | 2 |
19 files changed, 38 insertions, 0 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index 4655be7f..337a14f6 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import codecs import logging import sys diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index fda9f3d8..7366b82c 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + try: from subprocess import getstatusoutput as subprocess_getstatusoutput except ImportError: diff --git a/pym/_emerge/countdown.py b/pym/_emerge/countdown.py index 28352ff4..12c3e2c0 100644 --- a/pym/_emerge/countdown.py +++ b/pym/_emerge/countdown.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import sys import time diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 5d90ff0f..33cb7b5e 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import gc import logging import re diff --git a/pym/_emerge/emergelog.py b/pym/_emerge/emergelog.py index 5b026bf6..dbb0812f 100644 --- a/pym/_emerge/emergelog.py +++ b/pym/_emerge/emergelog.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import codecs import sys import time diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index 6e634f0c..f3469168 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + from portage.output import bold, turquoise, green def shorthelp(): diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 95031466..2ed7667e 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import logging import signal import sys diff --git a/pym/_emerge/search.py b/pym/_emerge/search.py index 1b43fbb8..82c49b39 100644 --- a/pym/_emerge/search.py +++ b/pym/_emerge/search.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import re from itertools import izip import portage diff --git a/pym/_emerge/unmerge.py b/pym/_emerge/unmerge.py index f9ad5060..bb6224fe 100644 --- a/pym/_emerge/unmerge.py +++ b/pym/_emerge/unmerge.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import logging import sys import textwrap diff --git a/pym/_emerge/userquery.py b/pym/_emerge/userquery.py index 9a62551d..db8cc4c7 100644 --- a/pym/_emerge/userquery.py +++ b/pym/_emerge/userquery.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import sys from portage.output import bold, create_color_func diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index deb7b2ff..aa7520ed 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -10,6 +10,8 @@ VERSION="$Rev$"[6:-2] + "-svn" # START OF IMPORTS -- START OF IMPORTS -- START OF IMPORTS -- START OF IMPORT # =========================================================================== +from __future__ import print_function + try: import sys import codecs diff --git a/pym/portage/cache/util.py b/pym/portage/cache/util.py index 8eee5971..55bcb015 100644 --- a/pym/portage/cache/util.py +++ b/pym/portage/cache/util.py @@ -3,6 +3,8 @@ # License: GPL2 # $Id$ +from __future__ import print_function + __all__ = ["mirror_cache", "non_quiet_mirroring", "quiet_mirroring"] from itertools import chain diff --git a/pym/portage/cvstree.py b/pym/portage/cvstree.py index de448fdd..1ecffa49 100644 --- a/pym/portage/cvstree.py +++ b/pym/portage/cvstree.py @@ -3,6 +3,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + import codecs import re import time diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 9a1d6574..b46abb2c 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + __all__ = ["portdbapi", "close_portdbapi_caches", "portagetree"] import portage diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 00a68312..74d12c99 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + __all__ = ["PreservedLibsRegistry", "LinkageMap", "vardbapi", "vartree", "dblink"] + \ ["write_contents", "tar_contents"] diff --git a/pym/portage/dispatch_conf.py b/pym/portage/dispatch_conf.py index 971f9eb5..096ce0a7 100644 --- a/pym/portage/dispatch_conf.py +++ b/pym/portage/dispatch_conf.py @@ -7,6 +7,8 @@ # Library by Wayne Davison <gentoo@blorf.net>, derived from code # written by Jeremy Wohl (http://igmus.org) +from __future__ import print_function + import os, sys, shutil try: from subprocess import getoutput as subprocess_getoutput diff --git a/pym/portage/elog/mod_echo.py b/pym/portage/elog/mod_echo.py index f699e630..28d77649 100644 --- a/pym/portage/elog/mod_echo.py +++ b/pym/portage/elog/mod_echo.py @@ -3,6 +3,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + from portage.output import EOutput, colorize from portage.const import EBUILD_PHASES from portage.localization import _ diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py index 20923ca2..c617efc3 100644 --- a/pym/portage/sets/__init__.py +++ b/pym/portage/sets/__init__.py @@ -5,6 +5,8 @@ __all__ = ["SETPREFIX", "get_boolean", "SetConfigError", "SetConfig", "load_default_config"] +from __future__ import print_function + try: from configparser import SafeConfigParser, NoOptionError except ImportError: diff --git a/pym/portage/sets/libs.py b/pym/portage/sets/libs.py index ede12272..d7e4c731 100644 --- a/pym/portage/sets/libs.py +++ b/pym/portage/sets/libs.py @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from __future__ import print_function + from portage.localization import _ from portage.sets.base import PackageSet from portage.sets import get_boolean |