]> 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 'develop' into deserialized-data-dict
authorRob Golding <rob@robgolding.com>
Thu, 15 Jan 2015 13:40:47 +0000 (13:40 +0000)
committerRob Golding <rob@robgolding.com>
Thu, 15 Jan 2015 13:40:47 +0000 (13:40 +0000)
Conflicts:
tasklib/task.py

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 a739d25b46e2ebcc6137a7300fcb7bd1bc2618a9..8513b14f79cdebbd200bda6be3fc199a2946ef6a 100644 (file)
@@ -371,7 +371,10 @@ class Task(TaskResource):
             # Add the output of format_field method to args list (defaults to
             # field:value)
             serialized_value = self._serialize(field, self._data[field]) or ''
-            format_default = lambda: "{0}:'{1}'".format(field, serialized_value)
+            format_default = lambda: "{0}:{1}".format(
+                field,
+                "'{0}'".format(serialized_value) if serialized_value else ''
+            )
             format_func = getattr(self, 'format_{0}'.format(field),
                                   format_default)
             args.append(format_func())