summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>2014-12-12 11:31:09 +0000
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>2014-12-15 09:16:15 +0000
commit85281cd3faa5e563f7e3efe6225ae6d988d23925 (patch)
treea4f5271fbafd75d65137e549e73013119d899bec
parentc39f26ac3af32a4b45ea9e48e0c6542346ef1fb5 (diff)
downloaddefinitions-85281cd3faa5e563f7e3efe6225ae6d988d23925.tar.gz
Whitespace removal
-rw-r--r--writeexts.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/writeexts.py b/writeexts.py
index 068f0741..fd2f5529 100644
--- a/writeexts.py
+++ b/writeexts.py
@@ -83,14 +83,14 @@ class Fstab(object):
class WriteExtension(cliapp.Application):
'''A base class for deployment write extensions.
-
+
A subclass should subclass this class, and add a
``process_args`` method.
-
+
Note that it is not necessary to subclass this class for write
extensions. This class is here just to collect common code for
write extensions.
-
+
'''
def setup_logging(self):
@@ -125,13 +125,13 @@ class WriteExtension(cliapp.Application):
def status(self, **kwargs):
'''Provide status output.
-
+
The ``msg`` keyword argument is the actual message,
the rest are values for fields in the message as interpolated
by %.
-
+
'''
-
+
self.output.write('%s\n' % (kwargs['msg'] % kwargs))
self.output.flush()
@@ -184,9 +184,9 @@ class WriteExtension(cliapp.Application):
def _parse_size(self, size):
'''Parse a size from a string.
-
+
Return size in bytes.
-
+
'''
m = re.match('^(\d+)([kmgKMG]?)$', size)