From 58dfa436ee53aac185b457e721bfe2303b8d006a Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 4 Oct 2016 18:30:15 -0700 Subject: [PATCH] Do not shadow _ function. (#1254) --- caravel/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/caravel/models.py b/caravel/models.py index f172a4cd74..5493e2b279 100644 --- a/caravel/models.py +++ b/caravel/models.py @@ -3,7 +3,6 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals -import re import functools import json @@ -826,7 +825,7 @@ class SqlaTable(Model, Queryable, AuditMixinNullable): # Patch only if the column clause is specific for DateTime set and # granularity is selected. @compiles(ColumnClause) - def _(element, compiler, **kw): + def visit_column(element, compiler, **kw): text = compiler.visit_column(element, **kw) try: if element.is_literal and hasattr(element.type, 'python_type') and \