X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/95045552540ca917d273954ebfa20b47a306bb93..9c5d9a4e77a10b4e60d89d3890e49002bd7f3993:/apps/compress/utils.py?ds=inline diff --git a/apps/compress/utils.py b/apps/compress/utils.py index 3c59728b9..89b04a56e 100644 --- a/apps/compress/utils.py +++ b/apps/compress/utils.py @@ -97,7 +97,7 @@ def get_version(version): except ValueError: return str(version) -def remove_files(path, filename, verbosity=0): +def remove_files(path, filename, verbosity=0): regex = re.compile(r'^%s$' % (os.path.basename(get_output_filename(settings.COMPRESS_VERSION_PLACEHOLDER.join([re.escape(part) for part in filename.split(settings.COMPRESS_VERSION_PLACEHOLDER)]), r'\d+')))) for f in os.listdir(path):