def __init__(self, reddit_session, json_dict):
        """Construct an instance of the Comment object."""
        super(Comment, self).__init__(reddit_session, json_dict,
                                      underscore_names=['replies'])
        self._has_fetched_replies = not hasattr(self, 'was_comment')
        if self._replies:
            self._replies = self._replies['data']['children']
        elif self._replies == '':  # Comment tree was built and there are none
            self._replies = []
        else:
            self._replies = None
        self._submission = None
def __init__ ( self , reddit_session , json_dict ) : super ( Comment , self ) . __init__ ( reddit_session , json_dict , underscore_names = [ 'replies' ] ) self . _has_fetched_replies = not hasattr ( self , 'was_comment' ) if self . _replies : self . _replies = self . _replies [ 'data' ] [ 'children' ] elif self . _replies == '' : self . _replies = [ ] else : self . _replies = None self . _submission = None
Construct an instance of the Comment object.