Skip to content

Commit

Permalink
Removing duplicated encoding of string types.
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingtonbear committed Feb 4, 2014
1 parent 5e46a51 commit 0dccea5
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 0dccea5

Please sign in to comment.