diff options
author | shtrom | 2014-06-17 06:40:26 +0000 |
---|---|---|
committer | shtrom | 2014-06-17 06:40:26 +0000 |
commit | dea7bf41a5bc98645e2fcbd0f6eef242fffc2261 (patch) | |
tree | 6c9c1669a3feaee8dbf88985f2fe6fd9fc1e045b /0001-Use-str-as-unicode-if-missing.patch | |
parent | c13462570d56acbce56436fe0dbcbb3de4492eff (diff) | |
download | aur-dea7bf41a5bc98645e2fcbd0f6eef242fffc2261.tar.gz |
[gtg-git] Dirty fix for the Hamster plugin so the preferences are the way I want
them...
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/archlinux-packages@367 df209809-8e4a-0410-9a64-c169741eb0fc
Diffstat (limited to '0001-Use-str-as-unicode-if-missing.patch')
-rw-r--r-- | 0001-Use-str-as-unicode-if-missing.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-Use-str-as-unicode-if-missing.patch b/0001-Use-str-as-unicode-if-missing.patch new file mode 100644 index 000000000000..ffc2cf32e4ac --- /dev/null +++ b/0001-Use-str-as-unicode-if-missing.patch @@ -0,0 +1,29 @@ +From 546c7fdd794206e504faa9374d5f9e53f17b853f Mon Sep 17 00:00:00 2001 +From: Olivier Mehani <olivier.mehani@nicta.com.au> +Date: Tue, 17 Jun 2014 16:23:02 +1000 +Subject: [PATCH] Use str() as unicode() if missing + +Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au> +--- + GTG/plugins/hamster/hamster.py | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/GTG/plugins/hamster/hamster.py b/GTG/plugins/hamster/hamster.py +index 2badf8b..ada250e 100644 +--- a/GTG/plugins/hamster/hamster.py ++++ b/GTG/plugins/hamster/hamster.py +@@ -28,7 +28,11 @@ import datetime + from GTG import _ + from GTG.core.task import Task + ++try: ++ unicode("") ++except: ++ unicode=str + + class hamsterPlugin: + PLUGIN_NAMESPACE = 'hamster-plugin' + DEFAULT_PREFERENCES = { +-- +2.0.0 + |