Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
else:
raise ValueError
# is an attribute
if hasattr(expr, 'info'):
mapper = expr.parent
tname = mapper.local_table.description
if ocol.table_name == tname and ocol.name == expr.name:
return thing
else:
raise ValueError
import re
ocol_quoted_full_name = re.sub('[()]', '', ocol.quoted_full_name)
# is an attribute with label
if ocol_quoted_full_name == OC(expr).full_name:
return thing
else:
raise ValueError