Mercurial > caja-test
comparison pavement.py @ 2:6737bc744b46
Added a TODO.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 07 Jun 2009 20:21:24 -0700 |
parents | 00d50391d378 |
children | cf673c093b61 |
comparison
equal
deleted
inserted
replaced
1:00d50391d378 | 2:6737bc744b46 |
---|---|
16 def cajole(self, filename): | 16 def cajole(self, filename): |
17 contents = open(filename).read() | 17 contents = open(filename).read() |
18 hash = md5.md5(contents).hexdigest() | 18 hash = md5.md5(contents).hexdigest() |
19 if hash not in self.cache: | 19 if hash not in self.cache: |
20 # TODO: This isn't threadsafe. | 20 # TODO: This isn't threadsafe. |
21 # TODO: There's no way to evict entries from the cache. | |
21 output_filename = "output.co.js" | 22 output_filename = "output.co.js" |
22 retval = subprocess.call([self.cajoler_path, | 23 retval = subprocess.call([self.cajoler_path, |
23 "-i", filename, | 24 "-i", filename, |
24 "-o", output_filename]) | 25 "-o", output_filename]) |
25 if retval == 0: | 26 if retval == 0: |