From: Rob Golding Date: Thu, 15 Jan 2015 11:46:15 +0000 (+0000) Subject: Merge branch 'release/0.7.1' X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/c3ad5d17022aad74d430dbbb09248f8ed10b1f66?hp=17c0b4c4fc697eaca97d43c8e40b3a69586fcfcb Merge branch 'release/0.7.1' --- diff --git a/README.rst b/README.rst index ff25287..b3dce21 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/docs/conf.py b/docs/conf.py index 650efc9..e83a5e3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/setup.py b/setup.py index 92f8e85..64018ea 100644 --- 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', diff --git a/tasklib/task.py b/tasklib/task.py index 6392b9e..b6c3d09 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -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())