Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/Lib/anydbm.py

    r2 r388  
    3030
    3131Future versions may change the order in which implementations are
    32 tested for existence, add interfaces to other dbm-like
     32tested for existence, and add interfaces to other dbm-like
    3333implementations.
    34 
    35 The open function has an optional second argument.  This can be 'r',
    36 for read-only access, 'w', for read-write access of an existing
    37 database, 'c' for read-write access to a new or existing database, and
    38 'n' for read-write access to a new database.  The default is 'r'.
    39 
    40 Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it
    41 only if it doesn't exist; and 'n' always creates a new database.
    42 
    4334"""
    4435
     
    6455error = tuple(_errors)
    6556
    66 def open(file, flag = 'r', mode = 0666):
     57def open(file, flag='r', mode=0666):
     58    """Open or create database at path given by *file*.
     59
     60    Optional argument *flag* can be 'r' (default) for read-only access, 'w'
     61    for read-write access of an existing database, 'c' for read-write access
     62    to a new or existing database, and 'n' for read-write access to a new
     63    database.
     64
     65    Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it
     66    only if it doesn't exist; and 'n' always creates a new database.
     67    """
     68
    6769    # guess the type of an existing database
    6870    from whichdb import whichdb
Note: See TracChangeset for help on using the changeset viewer.