Skip to content

Commit

Permalink
Remove redundant debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
rhunwicks committed Sep 20, 2017
1 parent 3bf0857 commit 1520c9f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions contrib/connectors/pandas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,22 +561,10 @@ def get_query_str(self, query_obj):
This is used to be displayed to the user so that she/he can
understand what is taking place behind the scene"""
import json
from functools import singledispatch

@singledispatch
def to_serializable(val):
"""Used by default."""
return str(val)

@to_serializable.register(datetime)
def ts_datetime(val):
"""Used if *val* is an instance of datetime."""
return val.isoformat() + "Z"

logging.info(json.dumps(query_obj, indent=4, default=to_serializable))
logging.debug('query_obj: %s', query_obj)
df = self.get_empty_dataframe()
df, query_str = self.process_dataframe(df, **query_obj)
logging.debug('query_str: %s', query_str)
return query_str

def query(self, query_obj):
Expand Down

0 comments on commit 1520c9f

Please sign in to comment.