Skip to content

Commit

Permalink
only make the deprecation check in debug mode (as per owner request)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgol committed Dec 5, 2014
1 parent 2a80574 commit be00b01
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,12 @@ def processImportFile(tdenv, db, importPath, tableName):
tdenv.DEBUG0("SQL-Statement: {}", sql_stmt)

# Check if there is a deprecation check for this table.
deprecationFn = getattr(sys.modules[__name__],
"deprecationCheck"+tableName,
None)
if tdenv.debug:
deprecationFn = getattr(sys.modules[__name__],
"deprecationCheck"+tableName,
None)
else:
deprecationFn = None

# import the data
importCount = 0
Expand Down

0 comments on commit be00b01

Please sign in to comment.