~soren/filecache/trunk-fail

« back to all changes in this revision

Viewing changes to tests/common.py

  • Committer: Rick Harris
  • Date: 2010-04-28 00:01:40 UTC
  • Revision ID: git-v1:2e59ea24954f66594b5d7688bea4d8e266649ad7
Removed delete lock and semaphore Closes #26

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
class URLFileCache(LRUFileCache):
24
24
    def __init__(self, path, fetch_fn=None,
25
25
                 max_keys=None, keys_pct=0.75,
26
 
                 max_size=None, size_pct=0.75, 
27
 
                 prune_dry_run=False, pruning_interval=10):
 
26
                 max_size=None, size_pct=0.75):
28
27
        super(URLFileCache, self).__init__(
29
28
            path,
30
29
            fetch_fn or self.url_fetcher,
31
30
            max_keys=max_keys, keys_pct=keys_pct, 
32
 
            max_size=max_size, size_pct=size_pct,
33
 
            prune_dry_run=prune_dry_run, 
34
 
            pruning_interval=pruning_interval
 
31
            max_size=max_size, size_pct=size_pct
35
32
        )
36
33
 
37
34
    def get_url(self, url, wait=True, chunksize=4096, fetch_options=None,