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
commita23bcc6321ad8e31e277de9753fbaa98ee6d741d (patch)
treef30f3b427b4b4afdeee4e937fb8786c6473fab7a
parente93d7ed826431729ad458df643470b46c0a6865f (diff)
downloadmorph-a23bcc6321ad8e31e277de9753fbaa98ee6d741d.tar.gz
Whitespace removal
-rw-r--r--morphlib/writeexts.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py
index 068f0741..fd2f5529 100644
--- a/morphlib/writeexts.py
+++ b/morphlib/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)