git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
translate most modules to using print() as imported from __future__
[unfold.git]
/
unfold
/
composite.py
diff --git
a/unfold/composite.py
b/unfold/composite.py
index
f3d42fc
..
7787551
100644
(file)
--- a/
unfold/composite.py
+++ b/
unfold/composite.py
@@
-1,3
+1,5
@@
+from __future__ import print_function
+
from unfold.plugin import Plugin
class Composite (Plugin):
from unfold.plugin import Plugin
class Composite (Plugin):
@@
-19,8
+21,8
@@
if a valid active_domid is not provided
def check_active_domid(self):
matches= [ son for son in self.sons if son.domid==self.active_domid ]
if len(matches)!=1:
def check_active_domid(self):
matches= [ son for son in self.sons if son.domid==self.active_domid ]
if len(matches)!=1:
- print
"WARNING: %s has %d valid son(s) for being active - expecting 1, resetting"%\
- (self,len(matches))
+ print
(
"WARNING: %s has %d valid son(s) for being active - expecting 1, resetting"%\
+ (self,len(matches))
)
self.active_domid=None
def insert (self, plugin):
self.active_domid=None
def insert (self, plugin):