Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/Tools/scripts/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/Tools/scripts/__pycache__/db2pickle.cpython-33.pyc

�
��f:c-@s\dZddlZyddlZWnek
r<dZYnXyddljZWnek
rjdZYnXyddlj	Z
Wnek
r�dZ
YnXyddljZWnek
r�dZYnXddlZyddl
Z
Wnek
rddl
Z
YnXejdZdd�Zdd�ZedkrXejeejdd���ndS(	uI
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 dbm (any supported format)
    -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.

iNcCstjjtt��dS(N(usysustderruwriteu__doc__uglobals(((u</opt/alt/python33/lib64/python3.3/Tools/scripts/db2pickle.pyuusage/suusagec	Cs�y1tj|dddddddg�\}}Wn tjk
rSt�dSYnXt|�d	ksxt|�d
kr�t�dSt|�dkr�|d	}tj}nR|d	}yt|dd�}Wn.tk
r�tjj	d|d�dSYnXd}x�|D]�\}}|d"kr[y
tj}Wq�t
k
rWtjj	d�dSYq�Xq
|d#kr�y
tj}Wq�t
k
r�tjj	d�dSYq�Xq
|d$kr�y
tj}Wq�t
k
r�tjj	d�dSYq�Xq
|d%kr*y
tj}Wq�t
k
r&tjj	d�dSYq�Xq
|d&kroy
tj}Wq�t
k
rktjj	d�dSYq�Xq
|d'kr
y
tj}Wq�t
k
r�tjj	d�dSYq�Xq
q
W|dkrtdkr�tjj	d�tjj	d�dStj}ny||d�}Wn=tjk
rRtjj	d |�tjj	d!�dSYnXx7|j�D])}tj|||f|ddk�q`W|j�|j�d	S((NuhbrdaguhashubtreeurecnoudbmugdbmuanydbmiiiuwbuUnable to open %s
u-hu--hashubsddb module unavailable.
u-bu--btreeu-ru--recnou-au--anydbmudbm module unavailable.
u-gu--gdbmudbm.gnu module unavailable.
u-du--dbmudbm.ndbm module unavailable.
ubsddb module unavailable - umust specify dbtype.
uruUnable to open %s.  u&Check for format or version mismatch.
(u-hu--hash(u-bu--btree(u-ru--recno(u-au--anydbm(u-gu--gdbm(u-du--dbm(ugetoptuerroruusageulenusysustdoutuopenuIOErrorustderruwriteuNoneubsddbuhashopenuAttributeErrorubtopenurnopenuanydbmugdbmudbmukeysupickleudumpuclose(	uargsuoptsudbfileupfileudbopenuoptuargudbuk((u</opt/alt/python33/lib64/python3.3/Tools/scripts/db2pickle.pyumain2s�	$


	











	'

umainu__main__i(u__doc__ugetoptubsddbuImportErroruNoneudbm.ndbmundbmudbmudbm.gnuugnuugdbmuanydbmusysupickleuargvuproguusageumainu__name__uexit(((u</opt/alt/python33/lib64/python3.3/Tools/scripts/db2pickle.pyu<module>s6





T