summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-01 08:48:15 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-01 08:48:15 +0000
commitd24e3bf5e266ec819e25a732610b3b62db4c1701 (patch)
tree8de3e784a8136ce018edb6c684b1d5a8194e9ae6
parent7bed5b16d332e089f0404c0e468fbddb8d873eb3 (diff)
downloadportage-d24e3bf5e266ec819e25a732610b3b62db4c1701.tar.gz
portage-d24e3bf5e266ec819e25a732610b3b62db4c1701.tar.bz2
portage-d24e3bf5e266ec819e25a732610b3b62db4c1701.zip
Remove broken pickle_write() since it can't possibly be used.
svn path=/main/trunk/; revision=11783
-rw-r--r--pym/portage/util.py17
1 files changed, 2 insertions, 15 deletions
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