Changeset 225:6edc83f6d5ae

Show
Ignore:
Timestamp:
2007-08-10 21:53:01 (1 year ago)
Author:
Stefan Schwarzer <sschwarzer@sschwarzer.net>
branch:
default
Message:
Prevent `DefaultSession.add_to_url` from modifying the passed-in
parameters dictionary in-place.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • session.py

    r221 r225  
    126126 
    127127    def add_to_url(self, url, params): 
     128        # don't modify the dictionary which was passed in as argument 
     129        params = params.copy() 
    128130        if 'dir_levels' in params: 
    129131            dir_levels = params['dir_levels']