Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.userip = None
self._conn = None
self._cursor = None
self._trove = None
if self.config.database_driver == 'sqlite3':
self.true, self.false = '1', '0'
self.can_lock = False
else:
self.true, self.false = 'TRUE', 'FALSE'
self.can_lock = True
self.queue = queue
self.count_redis = redis
self.statsd_uri = "statsd://127.0.0.1:8125?prefix=%s" % (config.database_name)
self.statsd_reporter = statsd_client_from_uri(self.statsd_uri)
self.dogstatsd = dogstatsd
self.package_bucket = package_bucket
self._changed_packages = set()
self._deleted_files = set()