From: Zac Medico Date: Sat, 1 Nov 2008 08:48:15 +0000 (-0000) Subject: Remove broken pickle_write() since it can't possibly be used. X-Git-Tag: v2.2_rc13~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d24e3bf5e266ec819e25a732610b3b62db4c1701;p=portage.git Remove broken pickle_write() since it can't possibly be used. svn path=/main/trunk/; revision=11783 --- diff --git a/pym/portage/util.py b/pym/portage/util.py index d7a0b0fcb..481c15bbc 100644 --- a/pym/portage/util.py +++ b/pym/portage/util.py @@ -564,21 +564,8 @@ def varexpand(mystring, mydict={}): cexpand[mystring]=newstring[1:] return newstring[1:] -def pickle_write(data,filename,debug=0): - import os - try: - myf=open(filename,"w") - pickle.dump(data,myf,-1) - myf.flush() - myf.close() - writemsg("Wrote pickle: "+str(filename)+"\n",1) - os.chown(myefn,uid,portage_gid) - os.chmod(myefn,0664) - except SystemExit, e: - raise - except Exception, e: - return 0 - return 1 +# broken and removed, but can still be imported +pickle_write = None def pickle_read(filename,default=None,debug=0): import os