Ejemplo n.º 1
0
 def left_denotation(self, left):
     super(SymbolTernaryInRange, self).left_denotation(left)
     for child in self.children[1:]:
         if child.is_literal() and not utils.is_iso8601_date(child.value):
             raise SyntaxError("invalid date '%s' in 'in_range ... to'" %
                               child.value)
     return self
Ejemplo n.º 2
0
 def left_denotation(self, left):
     super(SymbolTernaryInRange, self).left_denotation(left)
     for child in self.children[1:]:
         if child.is_literal() and not utils.is_iso8601_date(child.value):
             raise SyntaxError(
                 "invalid date '%s' in 'in_range ... to'" % child.value
             )
     return self