diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 11:08:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 11:08:30 +0000 |
commit | 15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf (patch) | |
tree | dbb60d5bbf670f1872539fca80263f17352f5c26 /pym/portage/cache | |
parent | 7cb8fb941f09d1ac646be334745f90e16ebd46eb (diff) | |
download | portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.tar.gz portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.tar.bz2 portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.zip |
Update syntax of calls to print() for compatibility with Python 3.
(2to3-3.1 -f print -nw ${FILES})
svn path=/main/trunk/; revision=14290
Diffstat (limited to 'pym/portage/cache')
-rw-r--r-- | pym/portage/cache/sql_template.py | 2 | ||||
-rw-r--r-- | pym/portage/cache/util.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pym/portage/cache/sql_template.py b/pym/portage/cache/sql_template.py index a4580bdc7..ff9d273ed 100644 --- a/pym/portage/cache/sql_template.py +++ b/pym/portage/cache/sql_template.py @@ -284,7 +284,7 @@ class SQLDatabase(template.database): else: query = '' - print "query = SELECT cpv from package_cache natural join values_cache WHERE label=%s %s" % (self.label, query) + print("query = SELECT cpv from package_cache natural join values_cache WHERE label=%s %s" % (self.label, query)) try: self.con.execute("SELECT cpv from package_cache natural join values_cache WHERE label=%s %s" % \ (self.label, query)) diff --git a/pym/portage/cache/util.py b/pym/portage/cache/util.py index 7b2f1026a..8eee5971d 100644 --- a/pym/portage/cache/util.py +++ b/pym/portage/cache/util.py @@ -161,9 +161,9 @@ class quiet_mirroring(object): class non_quiet_mirroring(quiet_mirroring): call_update_min=1 - def update(self,key,*arg): print "processed",key - def exception(self, key, *arg): print "exec",key,arg - def missing(self,key): print "key %s is missing", key - def corruption(self,key,*arg): print "corrupt %s:" % key,arg - def eclass_stale(self,key,*arg):print "stale %s:"%key,arg + def update(self,key,*arg): print("processed",key) + def exception(self, key, *arg): print("exec",key,arg) + def missing(self,key): print("key %s is missing", key) + def corruption(self,key,*arg): print("corrupt %s:" % key,arg) + def eclass_stale(self,key,*arg):print("stale %s:"%key,arg) |