@@ -67,7 +67,7 @@ def __init__(self, name, env, side=None, encoding=None):
6767 def local_name (self ):
6868 return self .name .replace (_LOCAL_TAG , '' )
6969
70- def __unicode__ (self ):
70+ def __str__ (self ):
7171 return pprint_thing (self .name )
7272
7373 def __call__ (self , * args , ** kwargs ):
@@ -166,7 +166,7 @@ def _resolve_name(self):
166166 def name (self ):
167167 return self .value
168168
169- def __unicode__ (self ):
169+ def __str__ (self ):
170170 # in python 2 str() of float
171171 # can truncate shorter than repr()
172172 return repr (self .name )
@@ -188,7 +188,7 @@ def __init__(self, op, operands, *args, **kwargs):
188188 def __iter__ (self ):
189189 return iter (self .operands )
190190
191- def __unicode__ (self ):
191+ def __str__ (self ):
192192 """Print a generic n-ary operator and its operands using infix
193193 notation"""
194194 # recurse over the operands
@@ -506,7 +506,7 @@ def __call__(self, env):
506506 operand = self .operand (env )
507507 return self .func (operand )
508508
509- def __unicode__ (self ):
509+ def __str__ (self ):
510510 return pprint_thing ('{0}({1})' .format (self .op , self .operand ))
511511
512512 @property
@@ -531,7 +531,7 @@ def __call__(self, env):
531531 with np .errstate (all = 'ignore' ):
532532 return self .func .func (* operands )
533533
534- def __unicode__ (self ):
534+ def __str__ (self ):
535535 operands = map (str , self .operands )
536536 return pprint_thing ('{0}({1})' .format (self .op , ',' .join (operands )))
537537
0 commit comments