Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/lib64/python2.7/Tools/scripts/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/lib64/python2.7/Tools/scripts/db2pickle.pyo

�
�fc@sBdZddlZyddlZWnek
r;dZnXyddlZWnek
redZnXyddlZWnek
r�dZnXyddlZWnek
r�dZnXddlZyddl	Z
Wnek
r�ddl
Z
nXejdZd�Z
d�Zedkr>ejeejd��ndS(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����NicCstjjtt��dS(N(tsyststderrtwritet__doc__tglobals(((s//usr/lib64/python2.7/Tools/scripts/db2pickle.pytusage/sc		Cs�y1tj|dddddddg�\}}Wntjk
rOt�dSXt|�d	kstt|�d
krt�dSt|�dkr�|d	}tj}nN|d	}yt|dd�}Wn*tk
r�tjj	d|d�dSXd}x�|D]�\}}|d"krOy
tj}Wq�t
k
rKtjj	d�dSXq|d#kr�y
tj}Wq�t
k
r�tjj	d�dSXq|d$kr�y
tj}Wq�t
k
r�tjj	d�dSXq|d%kry
tj}Wq�t
k
rtjj	d�dSXq|d&krSy
tj}Wq�t
k
rOtjj	d�dSXq|d'kry
tj}Wq�t
k
r�tjj	d�dSXqqW|dkr�tdkr�tjj	d�tjj	d�dStj}ny||d�}Wn9tjk
r.tjj	d |�tjj	d!�dSXx7|j�D])}tj|||f|ddk�q<W|j�|j�d	S((NthbrdagthashtbtreetrecnotdbmtgdbmtanydbmiiitwbsUnable to open %s
s-hs--hashsbsddb module unavailable.
s-bs--btrees-rs--recnos-as--anydbmsanydbm module unavailable.
s-gs--gdbmsgdbm module unavailable.
s-ds--dbmsdbm module unavailable.
sbsddb module unavailable - smust specify dbtype.
trsUnable to open %s.  s&Check for format or version mismatch.
(s-hs--hash(s-bs--btree(s-rs--recno(s-as--anydbm(s-gs--gdbm(s-ds--dbm(tgetoptterrorRtlenRtstdouttopentIOErrorRRtNonetbsddbthashopentAttributeErrortbtopentrnopenRRR
tkeystpickletdumptclose(	targstoptstdbfiletpfiletdbopentopttargtdbtk((s//usr/lib64/python2.7/Tools/scripts/db2pickle.pytmain2s�$














'

t__main__i(RRRtImportErrorRR
RRRtcPickleRtargvtprogRR(t__name__texit(((s//usr/lib64/python2.7/Tools/scripts/db2pickle.pyt<module>s6









		T

Hacked By AnonymousFox1.0, Coded By AnonymousFox