~mcfletch/simpleparse/pure-python

« back to all changes in this revision

Viewing changes to examples/transformation.py

  • Committer: Mike C. Fletcher
  • Date: 2011-09-06 20:51:03 UTC
  • Revision ID: mcfletch@vrplumber.com-20110906205103-h4h8jxu79yyed48c
Make simpleparse-pure test suite pass with no errors or warnings on Python 2.6, 2.7 and 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                ### write out post elements
70
70
                startpos = tree[3][-1][2] # end of last child
71
71
                result.append( self.data[ startpos: tree[2]] )
72
 
                return string.join( result, '' )
 
72
                return ''.join( result)
73
73
            else:
74
74
                # we're just re-emitting same text...
75
75
                return self.data[ tree[1]:tree[2]]