1 |
Author: zmedico |
2 |
Date: 2008-11-01 08:48:15 +0000 (Sat, 01 Nov 2008) |
3 |
New Revision: 11783 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/util.py |
7 |
Log: |
8 |
Remove broken pickle_write() since it can't possibly be used. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/util.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/util.py 2008-11-01 08:32:57 UTC (rev 11782) |
14 |
+++ main/trunk/pym/portage/util.py 2008-11-01 08:48:15 UTC (rev 11783) |
15 |
@@ -564,21 +564,8 @@ |
16 |
cexpand[mystring]=newstring[1:] |
17 |
return newstring[1:] |
18 |
|
19 |
-def pickle_write(data,filename,debug=0): |
20 |
- import os |
21 |
- try: |
22 |
- myf=open(filename,"w") |
23 |
- pickle.dump(data,myf,-1) |
24 |
- myf.flush() |
25 |
- myf.close() |
26 |
- writemsg("Wrote pickle: "+str(filename)+"\n",1) |
27 |
- os.chown(myefn,uid,portage_gid) |
28 |
- os.chmod(myefn,0664) |
29 |
- except SystemExit, e: |
30 |
- raise |
31 |
- except Exception, e: |
32 |
- return 0 |
33 |
- return 1 |
34 |
+# broken and removed, but can still be imported |
35 |
+pickle_write = None |
36 |
|
37 |
def pickle_read(filename,default=None,debug=0): |
38 |
import os |