Changeset 13597


Ignore:
Timestamp:
Sep 25, 2019 11:34:37 AM (3 months ago)
Author:
randersson
Message:

#5819 Updated class method to properly convert the format of strings to strings since there is currently a discrepancy between py2 and py3. In py2 its u'text' instead of simply just 'text' as in py3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/Python/src/pyjmi/log/tree.py

    r13591 r13597  
    6161    def __repr__(self):
    6262        return ('<' + self.type + ' node with ' + repr(len(self.nodes))
    63                 + ' subnodes, and named subnodes ' + repr(list(self.dict.keys())) + '>')
     63                + ' subnodes, and named subnodes ' + repr(list(map(str, self.dict.keys()))) + '>')
    6464
    6565
     
    8787        if isinstance(types, str if python3_flag else basestring):
    8888            types = [types]
    89 
     89       
    9090        nodes = []       
    9191        for node in self.nodes:
Note: See TracChangeset for help on using the changeset viewer.