|
Lines 71-80
Link Here
|
| 71 |
|
71 |
|
| 72 |
old_dn=None |
72 |
old_dn=None |
| 73 |
if os.path.exists(os.path.join(directory, 'tmp','old_dn')): |
73 |
if os.path.exists(os.path.join(directory, 'tmp','old_dn')): |
| 74 |
f=open(os.path.join(directory, 'tmp','old_dn'),'r') |
74 |
if command == 'm': |
| 75 |
p=cPickle.Unpickler(f) |
75 |
os.unlink(os.path.join(directory, 'tmp','old_dn')) |
| 76 |
old_dn=p.load() |
76 |
else: |
| 77 |
f.close() |
77 |
f=open(os.path.join(directory, 'tmp','old_dn'),'r') |
|
|
78 |
p=cPickle.Unpickler(f) |
| 79 |
old_dn=p.load() |
| 80 |
f.close() |
| 78 |
if command == 'r': |
81 |
if command == 'r': |
| 79 |
filename=os.path.join(directory, 'tmp','old_dn') |
82 |
filename=os.path.join(directory, 'tmp','old_dn') |
| 80 |
|
83 |
|