def streamline(self):
    super(ParseExpression, self).streamline()
    for e in self.exprs:
        e.streamline()
    if (len(self.exprs) == 2):
        other = self.exprs[0]
        if (isinstance(other, self.__class__) and (not other.actions) and (other.name is None)):
            self.exprs = (other.exprs[:] + [self.exprs[1]])
        other = self.exprs[(- 1)]
        if (isinstance(other, self.__class__) and (not other.actions) and (other.name is None)):
            self.exprs = (self.exprs[:(- 1)] + other.exprs[:])
    return self
def streamline(self):
    super(ParseExpression, self).streamline()
    for e in self.exprs:
        e.streamline()
    if (len(self.exprs) == 2):
        other = self.exprs[0]
        if (isinstance(other, self.__class__) and (not other.actions) and (other.name is None)):
            self.exprs = (other.exprs[:] + [self.exprs[1]])
        other = self.exprs[(- 1)]
        if (isinstance(other, self.__class__) and (not other.actions) and (other.name is None)):
            self.exprs = (self.exprs[:(- 1)] + other.exprs[:])
    return self