Skip to content

Commit

Permalink
Another place with ZIP support removed
Browse files Browse the repository at this point in the history
  • Loading branch information
regebro committed May 21, 2017
1 parent 6ae1b1c commit 22dfe34
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions hovercraft/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,7 @@ def copy_resource(self, resource, targetdir):
if not os.path.exists(directory_name):
os.makedirs(directory_name)

try:
source_path = self.get_source_path(resource)
except NotImplementedError:
# The template is in a zipped package!
# Read the data as binary and write out to the outfile.
with open(target_path, 'wb') as outfile:
outfile.write(self.read_data(resource))
# Done!
return None # Although copied, we do not monitor zip-files.
source_path = self.get_source_path(resource)

if (os.path.exists(target_path) and
os.path.getmtime(source_path) <= os.path.getmtime(target_path)):
Expand Down

0 comments on commit 22dfe34

Please sign in to comment.