]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge branch 'release/0.7.1'
authorRob Golding <rob@robgolding.com>
Thu, 15 Jan 2015 11:46:15 +0000 (11:46 +0000)
committerRob Golding <rob@robgolding.com>
Thu, 15 Jan 2015 11:46:15 +0000 (11:46 +0000)
README.rst
docs/conf.py
setup.py
tasklib/task.py

index ff25287dc08ad5ab280aa93eade6013f0ef6fc45..b3dce21d45f03c91605e6c999b03bfb02143e6a2 100644 (file)
@@ -1,7 +1,7 @@
 tasklib
 =======
 
-.. image:: https://travis-ci.org/robgolding63/tasklib.png
+.. image:: https://travis-ci.org/robgolding63/tasklib.png?branch=develop
     :target: http://travis-ci.org/robgolding63/tasklib
 
 .. image:: https://coveralls.io/repos/robgolding63/tasklib/badge.png?branch=develop
index 650efc95ec4b88f07569121a37df03f6a35b660c..e83a5e37194a049a22e43ad37b5ccca086b3011b 100644 (file)
@@ -51,9 +51,9 @@ copyright = u'2014, Rob Golding'
 # built documents.
 #
 # The short X.Y version.
-version = '0.7.0'
+version = '0.7.1'
 # The full version, including alpha/beta/rc tags.
-release = '0.7.0'
+release = '0.7.1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index 92f8e85a7d752a0f86aa27cdecec54330b7fa391..64018ea200310d0b654e307b92c59e2f38bec521 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-version = '0.7.0'
+version = '0.7.1'
 
 setup(
     name='tasklib',
index 6392b9e96e7b39f1c569cdb22089d232c3ba2fae..b6c3d09168ec6897749ade2c2d4ce26ceebf2b33 100644 (file)
@@ -372,8 +372,11 @@ class Task(TaskResource):
 
         def add_field(field):
             # Add the output of format_field method to args list (defaults to
-            # field:value)
-            format_default = lambda k: "{0}:'{1}'".format(k, self._data[k] or '')
+            # field:'value')
+            format_default = lambda k: "{0}:{1}".format(k,
+                                           "'{0}'".format(self._data[k])
+                                           if self._data[k] is not None
+                                           else '')
             format_func = getattr(self, 'format_{0}'.format(field),
                                   lambda: format_default(field))
             args.append(format_func())