diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-04-21 12:50:34 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-04-21 12:50:34 +0100 |
commit | 5e0f8c8a0bd2ca9fab03b503e5120158bc93e7bd (patch) | |
tree | ef1b39242b5f8928235a401898949f1390122334 | |
parent | e1f4260d94c7f5cd9666924255a23f7c53da7b6d (diff) | |
download | larch-5e0f8c8a0bd2ca9fab03b503e5120158bc93e7bd.tar.gz |
Fix cat in read-only mode to ignore journal
-rw-r--r-- | larch/journal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/larch/journal.py b/larch/journal.py index 6bdf2f7..fc3062f 100644 --- a/larch/journal.py +++ b/larch/journal.py @@ -119,7 +119,7 @@ class Journal(object): def cat(self, filename): new = self._new(filename) - if self.fs.exists(new): + if self.allow_writes and self.fs.exists(new): return self.fs.cat(new) else: return self.fs.cat(filename) |