~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-06 04:04:54 UTC
  • mfrom: (5753.3.1 log-mutation-of-global)
  • Revision ID: pqm@pqm.ubuntu.com-20110406040454-pqkw8sh6n4r3ffys
(spiv) Fix accidental mutation of _DEFAULT_REQUEST_PARAMS in
 bzrlib.log._apply_log_request_defaults (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
 
298
298
def _apply_log_request_defaults(rqst):
299
299
    """Apply default values to a request dictionary."""
300
 
    result = _DEFAULT_REQUEST_PARAMS
 
300
    result = _DEFAULT_REQUEST_PARAMS.copy()
301
301
    if rqst:
302
302
        result.update(rqst)
303
303
    return result