Changeset 13495


Ignore:
Timestamp:
Sep 16, 2019 2:02:48 PM (3 months ago)
Author:
randersson
Message:

#5819 Testing by simply removing the asserts and updating a conditional changing the type of input to list.

File:
1 edited

Legend:

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

    r13494 r13495  
    2929    """
    3030    def __init__(self, text):
    31         assert isinstance(text, str if version_info > (3, 0) else basestring)
     31        # TODO: Do we really need this assert? It breaks py3 compatibility
     32        #assert isinstance(text, basestring)
    3233        self.text = text
    3334
     
    4445
    4546    def __init__(self, type):
    46         assert isinstance(type, str if version_info > (3, 0) else basestring)
     47        # TODO: Do we really need this assert? It breaks py3 compatibility
     48        #assert isinstance(type, basestring)
    4749        self.type  = type
    4850        self.nodes = []
     
    8789        types may be a string or list of strings.
    8890        """
    89         if isinstance(types, str):
    90             types = [types]
     91        types = list(types) if not isinstance(types, list) else types
    9192
    9293        nodes = []       
Note: See TracChangeset for help on using the changeset viewer.