Skip to content

Commit

Permalink
Refactor the enable_cache argument
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Nov 30, 2017
1 parent 1ebb6d7 commit 8048a9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/c1218/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,7 @@ def __init__(self, *args, **kwargs):
on subsequent requests. This is enabled only for specific tables
(currently only 0 and 1).
"""
enable_cache = True
if 'enable_cache' in kwargs:
enable_cache = kwargs['enable_cache']
enable_cache = kwargs.pop('enable_cache', True)
super(Connection, self).__init__(*args, **kwargs)
self.caching_enabled = enable_cache
self.__cacheable_tbls__ = [0, 1]
Expand Down

0 comments on commit 8048a9a

Please sign in to comment.