Commit 516b5076 authored by Jim Fulton's avatar Jim Fulton

Fixed typo that made switching to second cache file fail.

parent c86aef20
......@@ -144,7 +144,7 @@ file 0 and file 1.
"""
__version__ = "$Revision: 1.6 $"[11:-2]
__version__ = "$Revision: 1.7 $"[11:-2]
import os, tempfile
from struct import pack, unpack
......@@ -310,7 +310,7 @@ class ClientCache:
# Make sure we aren't going to exceed the target size.
# If we are, then flip the cache.
if self._pos+size > self._limit:
current=not current
current=not self._current
self._current=current
self._f[current]=open(self._p[current],'w+b')
self._f[current].write(magic)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment