(self, d, in_range)
return None
Read if next char is not empty and in range.
Read if next char is not empty and in range.
Read if next char is not empty and in range .
def read_if(self, d, in_range):
        """Read if next char is not empty and in range."""
        if d != b'' and d in in_range:
            self.read(len(d))
            return d
        return None
def read_if ( self , d , in_range ) : if d != b'' and d in in_range : self . read ( len ( d ) ) return d return None