diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-04-04 16:31:38 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-04-10 11:24:29 +0300 |
commit | 40edfe8a3d1af0fe4f780faba8cc4be4141e2d0d (patch) | |
tree | 4385dd50353780806c0e3ad9406df6701d03afe4 /subplot.py | |
parent | 23d24deeeef8e0d529ca16c693911cfd2d31d02f (diff) | |
download | subplot-40edfe8a3d1af0fe4f780faba8cc4be4141e2d0d.tar.gz |
Change: check for embedded files with non-unique names
This is ugly and panics, but that's acceptable for now. We'll clean
this up later.
Diffstat (limited to 'subplot.py')
-rw-r--r-- | subplot.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -49,6 +49,9 @@ def run_pandoc_with_filter(ctx, filename=None, output=None): def file_exists(ctx, filename=None): assert_eq(os.path.exists(filename), True) +def file_does_not_exist(ctx, filename=None): + assert_eq(os.path.exists(filename), False) + def file_matches(ctx, filename=None, regex=None): with open(filename) as f: content = f.read() |