summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-05-27 19:06:18 +0100
committerLars Wirzenius <liw@liw.fi>2014-05-27 19:06:18 +0100
commitb65e93360e71396bc97ed674ff0cb9a5dd1f5b81 (patch)
tree57593095bf02b7efb5393c6630004dd19e5a434a
parentcb1e848da2947f92c68b858b2d5c1a1446fba780 (diff)
downloaddistix-b65e93360e71396bc97ed674ff0cb9a5dd1f5b81.tar.gz
Remove spaces from empty lines
-rw-r--r--TUTORIAL2
-rw-r--r--distixlib/metadata_loader.py2
-rw-r--r--distixlib/metadata_saver_tests.py2
-rw-r--r--distixlib/plugins/reply_plugin.py2
-rw-r--r--distixlib/plugins/set_plugin.py2
-rw-r--r--distixlib/plugins/show_plugin.py2
-rw-r--r--distixlib/ticket_store.py2
-rw-r--r--yarns/020-metadata-manipulation.yarn2
-rw-r--r--yarns/040-new.yarn2
-rw-r--r--yarns/050-show.yarn4
-rw-r--r--yarns/060-set.yarn4
-rw-r--r--yarns/070-reply.yarn2
12 files changed, 14 insertions, 14 deletions
diff --git a/TUTORIAL b/TUTORIAL
index 1fea069..9c53d5f 100644
--- a/TUTORIAL
+++ b/TUTORIAL
@@ -118,7 +118,7 @@ Replying to a ticket: `distix reply`
To add a reply to a ticket:
distix reply 0234e10813ca44438510c37a7b61abb2 --message="Yay!"
-
+
distix will create a new e-mail and put it in the `Maildir` folder
in the ticket's directory. `distix show` will show the message, and
you can look at the folder directly with any e-mail program you like
diff --git a/distixlib/metadata_loader.py b/distixlib/metadata_loader.py
index b8b20fc..3eb101e 100644
--- a/distixlib/metadata_loader.py
+++ b/distixlib/metadata_loader.py
@@ -37,7 +37,7 @@ class MetadataLoader(object):
logging.error('Opening or reading %s: %s', filename, e)
raise distixlib.CannotLoadMetadataError(
filename=filename, errno=e.errno, strerror=e.strerror)
-
+
serialiser = distixlib.MetadataSerialiser()
return serialiser.deserialise(text)
diff --git a/distixlib/metadata_saver_tests.py b/distixlib/metadata_saver_tests.py
index 2e52bc3..6f5dc2f 100644
--- a/distixlib/metadata_saver_tests.py
+++ b/distixlib/metadata_saver_tests.py
@@ -27,7 +27,7 @@ import distixlib
class MetadataSaverTests(unittest.TestCase):
def test_raises_specific_error_when_open_fails(self):
-
+
def raise_ioerror(*args):
raise IOError(errno.EROFS, 'rofs', 'filename')
diff --git a/distixlib/plugins/reply_plugin.py b/distixlib/plugins/reply_plugin.py
index 21d0a96..b544d76 100644
--- a/distixlib/plugins/reply_plugin.py
+++ b/distixlib/plugins/reply_plugin.py
@@ -70,7 +70,7 @@ class ReplyPlugin(cliapp.Plugin):
def _read_ticket_ids_from_file(self, filename):
with open(filename) as f:
return [line.strip() for line in f.readlines()]
-
+
def _get_message_body(self):
return self.app.settings['message']
diff --git a/distixlib/plugins/set_plugin.py b/distixlib/plugins/set_plugin.py
index f48add9..8d32468 100644
--- a/distixlib/plugins/set_plugin.py
+++ b/distixlib/plugins/set_plugin.py
@@ -34,7 +34,7 @@ class SetPlugin(cliapp.Plugin):
def set(self, args):
'''Set ticket metadata.'''
-
+
ticket_id = self._get_ticket_id(args)
ticket_store = self._open_ticket_store()
ticket = ticket_store.get_ticket(ticket_id)
diff --git a/distixlib/plugins/show_plugin.py b/distixlib/plugins/show_plugin.py
index e71371c..8db7d07 100644
--- a/distixlib/plugins/show_plugin.py
+++ b/distixlib/plugins/show_plugin.py
@@ -26,7 +26,7 @@ import distixlib
class ShowTicketPlugin(cliapp.Plugin):
-
+
_template = '''\
% title = metadata.get_first_value('title')
{{ticket_id}}: {{title}}
diff --git a/distixlib/ticket_store.py b/distixlib/ticket_store.py
index 11e9c73..006877f 100644
--- a/distixlib/ticket_store.py
+++ b/distixlib/ticket_store.py
@@ -131,7 +131,7 @@ class TicketStore(object):
if ticket_id == existing.get_ticket_id():
raise distixlib.TicketAlreadyInStoreError(
ticket_id=ticket_id, dirname=self._dirname)
-
+
self._dirty = True
self._ticket_cache.put(ticket)
self._create_store_directory()
diff --git a/yarns/020-metadata-manipulation.yarn b/yarns/020-metadata-manipulation.yarn
index 535caef..46722e8 100644
--- a/yarns/020-metadata-manipulation.yarn
+++ b/yarns/020-metadata-manipulation.yarn
@@ -8,7 +8,7 @@ There are three commands, `_set`, `_get`, and `_list`, and they'll be
tested together, since they interact with each other.
SCENARIO metadata manipulation
-
+
To start with, the `_list` command should give an error if the
metadata file doesn't exist.
diff --git a/yarns/040-new.yarn b/yarns/040-new.yarn
index d7a50bf..4777fdb 100644
--- a/yarns/040-new.yarn
+++ b/yarns/040-new.yarn
@@ -16,7 +16,7 @@ This chapter has scenarios for creating new tickets.
WHEN user attempts to run distix new new-ticket-title
THEN attempt succeeded
AND everything in REPO is committed to git
-
+
WHEN user attempts to run distix list
THEN attempt succeeded
AND output matches "^[0-9a-f]{32} new-ticket-title$"
diff --git a/yarns/050-show.yarn b/yarns/050-show.yarn
index c07f4b5..f711f82 100644
--- a/yarns/050-show.yarn
+++ b/yarns/050-show.yarn
@@ -4,14 +4,14 @@ Show tickets
This chapter has scenarios for showing individual tickets.
SCENARIO show ticket
-
+
WHEN user attempts to run distix init REPO
THEN attempt succeeded
WHEN user changes working directory to REPO
AND user attempts to run distix new new-ticket-title --save-ticket-id=NEW
THEN attempt succeeded
-
+
WHEN user attempts to run distix show --ticket-id-from=NEW
THEN attempt succeeded
AND output matches "."
diff --git a/yarns/060-set.yarn b/yarns/060-set.yarn
index d419dff..4aed805 100644
--- a/yarns/060-set.yarn
+++ b/yarns/060-set.yarn
@@ -4,14 +4,14 @@ Set metadata for ticket
This chapter contains scenarios for setting metadata for a ticket.
SCENARIO set metadata for ticket
-
+
WHEN user attempts to run distix init REPO
THEN attempt succeeded
WHEN user changes working directory to REPO
AND user attempts to run distix new new-ticket-title --save-ticket-id=../NEW
THEN attempt succeeded
-
+
WHEN user attempts to run distix set DUMMYID FOO=BAR --ticket-id-from=../NEW
THEN attempt succeeded
AND everything in REPO is committed to git
diff --git a/yarns/070-reply.yarn b/yarns/070-reply.yarn
index 62a6345..43170a7 100644
--- a/yarns/070-reply.yarn
+++ b/yarns/070-reply.yarn
@@ -12,7 +12,7 @@ tickets.
WHEN user changes working directory to REPO
AND user attempts to run distix new new-ticket-title --save-ticket-id=../NEW
THEN attempt succeeded
-
+
WHEN user attempts to run distix reply DUMMYID --ticket-id-from=../NEW --message=a-reply
THEN attempt succeeded
AND everything in REPO is committed to git