Skip to content

Commit

Permalink
Merge pull request #1 from dan-blanchard/patch-1
Browse files Browse the repository at this point in the history
Python 3 compatability fix
  • Loading branch information
dan-blanchard committed Sep 16, 2013
2 parents cc5f020 + 2923e35 commit 6b7c116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drmaa/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class DictAttribute(object):
def __init__(self, name):
self.name = name
def __set__(self, instance, value):
v = [ "%s=%s" % (k, v) for (k, v) in value.items() ]
v = [ "%s=%s".encode() % (k, v) for (k, v) in value.items() ]
c(drmaa_set_vector_attribute, instance, self.name, string_vector(v))
def __get__(self, instance, _):
x = [ i.split('=', 1) for i in list(vector_attribute_iterator(
Expand Down

0 comments on commit 6b7c116

Please sign in to comment.