Changeset 44:e7ae0acd9be3 in livinglogic.python.nightshade

Show
Ignore:
Timestamp:
03/16/07 16:35:04 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Tags:
rel-0-7
Message:

Fix shadowing of variable names.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/nightshade.py

    r42 r44  
    285285        """ 
    286286        self.callable = callable 
    287         withconnection = withconnection(connectstring=connectstring, pool=pool, retry=retry) 
     287        wc = withconnection(connectstring=connectstring, pool=pool, retry=retry) 
    288288        # Calculate parameter mapping now, so we don't get concurrency problems later 
    289         connection = withconnection.connection() 
     289        connection = wc.connection() 
    290290        callable._calcargs(connection.cursor()) 
    291         self.realcallable = withconnection(self._call) 
     291        self.realcallable = wc(self._call) 
    292292 
    293293    def _call(self, connection, *args, **kwargs):