r47324 - appeasing twistedchecker
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Tue, 26 Apr 2016 00:41:32 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Tue Apr 26 00:41:22 2016
New Revision: 47324
Modified:
branches/adbapi-txchecker-8304/twisted/enterprise/adbapi.py
Log:
appeasing twistedchecker
Modified: branches/adbapi-txchecker-8304/twisted/enterprise/adbapi.py
==============================================================================
--- branches/adbapi-txchecker-8304/twisted/enterprise/adbapi.py (original)
+++ branches/adbapi-txchecker-8304/twisted/enterprise/adbapi.py Tue Apr 26 00:41:22 2016
@@ -225,10 +225,10 @@
self.connkw = connkw
for arg in self.CP_ARGS:
- cp_arg = 'cp_%s' % arg
- if cp_arg in connkw:
+ cpArg = 'cp_%s' % (arg,)
+ if cpArg in connkw:
setattr(self, arg, connkw[cp_arg])
- del connkw[cp_arg]
+ del connkw[cpArg]
self.min = min(self.min, self.max)
self.max = max(self.min, self.max)