]> 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:

Use six.string_types over basestring for Python 3 compatibility
authorRob Golding <rob@robgolding.com>
Thu, 15 Jan 2015 13:41:43 +0000 (13:41 +0000)
committerRob Golding <rob@robgolding.com>
Thu, 15 Jan 2015 13:41:43 +0000 (13:41 +0000)
tasklib/task.py

index 8513b14f79cdebbd200bda6be3fc199a2946ef6a..9d6d47f4a8bcf6c0951514d9c0a78f6056182ed7 100644 (file)
@@ -93,7 +93,7 @@ class SerializingObject(object):
         return ','.join(tags) if tags else ''
 
     def deserialize_tags(self, tags):
-        if isinstance(tags, basestring):
+        if isinstance(tags, six.string_types):
             return tags.split(',') if tags else []
         return tags or []