summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-28 08:00:20 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-28 08:00:20 +0000
commit2e2eee8ea17ab9e050d03af50e9315295ea3d8e1 (patch)
tree54f14f8acdbfc897531455788403a366465526ff /pym
parent32f03e51d1597a5ddb38d6e71d8b2b7a75862bdb (diff)
downloadportage-2e2eee8ea17ab9e050d03af50e9315295ea3d8e1.tar.gz
portage-2e2eee8ea17ab9e050d03af50e9315295ea3d8e1.tar.bz2
portage-2e2eee8ea17ab9e050d03af50e9315295ea3d8e1.zip
Remove print() usage.
svn path=/main/trunk/; revision=15494
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 39dd6eb8c..124783ca2 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -2,8 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-from __future__ import print_function
-
__all__ = [
"close_portdbapi_caches", "FetchlistDict", "portagetree", "portdbapi"
]
@@ -809,8 +807,8 @@ class portdbapi(dbapi):
checksums = mf.getDigests()
if not checksums:
if debug:
- print("[empty/missing/bad digest]: "+mypkg)
- return None
+ writemsg("[empty/missing/bad digest]: %s\n" % (mypkg,))
+ return {}
filesdict={}
myfiles = self.getFetchMap(mypkg, useflags=useflags)
#XXX: maybe this should be improved: take partial downloads
@@ -1091,8 +1089,8 @@ class portdbapi(dbapi):
else:
myval = list(self._iter_match(mydep, self.cp_list(mykey)))
else:
- print("ERROR: xmatch doesn't handle", level, "query!")
- raise KeyError
+ raise AssertionError(
+ "Invalid level argument: '%s'" % level)
if self.frozen and (level not in ["match-list", "bestmatch-list"]):
self.xcache[level][mydep] = myval