Your IP : 18.216.161.178
�
�fc @ sB d Z d d l Z y d d l Z Wn e k
r; d Z n Xy d d l Z Wn e k
re d Z n Xy d d l Z Wn e k
r� d Z n Xy d d l Z Wn e k
r� d Z n Xd d l Z y d d l Z
Wn e k
r� d d l
Z
n Xe j d Z d � Z
d � Z e d k r>e j e e j d � � n d S( s5
Synopsis: %(prog)s [-h|-g|-b|-r|-a] dbfile [ picklefile ]
Convert the database file given on the command line to a pickle
representation. The optional flags indicate the type of the database:
-a - open using anydbm
-b - open as bsddb btree file
-d - open as dbm file
-g - open as gdbm file
-h - open as bsddb hash file
-r - open as bsddb recno file
The default is hash. If a pickle file is named it is opened for write
access (deleting any existing data). If no pickle file is named, the pickle
output is written to standard output.
i����Ni c C s t j j t t � � d S( N( t syst stderrt writet __doc__t globals( ( ( s/ /usr/lib64/python2.7/Tools/scripts/db2pickle.pyt usage/ s c C s� y1 t j | d d d d d d d g � \ } } Wn t j k
rO t � d SXt | � d k st t | � d
k r t � d St | � d k r� | d } t j } nN | d } y t | d d � } Wn* t k
r� t j j d | d � d SXd } x�| D]�\ } } | d"