Changeset 3521

Show
Ignore:
Timestamp:
09/06/07 17:05:21 (1 year ago)
Author:
pobrien
Message:

Don't default to a dictionary for the backend_args as that results in the accumulation of items in that dictionary if open() is called repeatedly without supplying an argument for the backend_args parameter.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Schevo/schevo/database.py

    r3509 r3521  
    343343        backend_args = BackendClass.args_from_string(backend_args) 
    344344    backend_args.update(additional_args) 
     345    print backend_args 
    345346    return BackendClass(filename, **backend_args) 
    346347 
    347348 
    348 def open(filename, backend_name=None, backend_args={}): 
     349def open(filename, backend_name=None, backend_args=None): 
    349350    """Open an existing database and return it. 
    350351