From 8041475aab2b8efad7d2857027331bd626d26312 Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Wed, 26 Aug 2015 07:57:04 -0300 Subject: Imported Upstream version 7.6.4 --- nikola/plugins/task/gzip.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nikola/plugins/task/gzip.py') diff --git a/nikola/plugins/task/gzip.py b/nikola/plugins/task/gzip.py index 5799839..cf16f63 100644 --- a/nikola/plugins/task/gzip.py +++ b/nikola/plugins/task/gzip.py @@ -35,12 +35,14 @@ from nikola.plugin_categories import TaskMultiplier class GzipFiles(TaskMultiplier): + """If appropiate, create tasks to create gzipped versions of files.""" name = "gzip" is_default = True def process(self, task, prefix): + """Process tasks.""" if not self.site.config['GZIP_FILES']: return [] if task.get('name') is None: @@ -70,6 +72,7 @@ class GzipFiles(TaskMultiplier): def create_gzipped_copy(in_path, out_path, command=None): + """Create gzipped copy of in_path and save it as out_path.""" if command: subprocess.check_call(shlex.split(command.format(filename=in_path))) else: -- cgit v1.2.3