From e23fe00ff2a8fb3c796bfcc600dcc58dba902fa5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 23 Jan 2017 20:39:05 +0000 Subject: Move target URI handling out of zips module --- mammoth/zips.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'mammoth/zips.py') diff --git a/mammoth/zips.py b/mammoth/zips.py index 8e09924..432be5d 100644 --- a/mammoth/zips.py +++ b/mammoth/zips.py @@ -54,10 +54,3 @@ def update_zip(fileobj, files): fileobj.seek(0) destination_fileobj.seek(0) shutil.copyfileobj(destination_fileobj, fileobj) - - -def uri_to_zip_entry_name(base, uri): - if uri.startswith("/"): - return uri[1:] - else: - return base + "/" + uri -- cgit v1.2.3