Skip to content

Commit

Permalink
Do not shadow _ function. (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkyryliuk committed Oct 5, 2016
1 parent 8ab5e50 commit 58dfa43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions caravel/models.py
Expand Up @@ -3,7 +3,6 @@
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import re

import functools
import json
Expand Down Expand Up @@ -826,7 +825,7 @@ def query( # sqla
# 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 \
Expand Down

0 comments on commit 58dfa43

Please sign in to comment.