Skip to content

Commit

Permalink
Merge pull request #38 from latestrevision/remove_duplicated_encoding…
Browse files Browse the repository at this point in the history
…_for_string_items

Removing duplicated encoding of string types.
  • Loading branch information
ralphbean committed Feb 4, 2014
2 parents 5e46a51 + 0dccea5 commit 9031179
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions taskw/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ def encode_task_experimental(task):
if 'tags' in task:
task['tags'] = ','.join(task['tags'])
for k in task:
for unsafe, safe in six.iteritems(encode_replacements_experimental):
if isinstance(task[k], six.string_types):
task[k] = task[k].replace(unsafe, safe)

if isinstance(task[k], datetime.datetime):
if not task[k].tzinfo:
# Dates not having timezone information should be
Expand Down

0 comments on commit 9031179

Please sign in to comment.