Skip to content

Commit

Permalink
force urls from master to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jflatow committed May 5, 2011
1 parent 88551bf commit 96e5b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/disco/worker/__init__.py
Expand Up @@ -359,13 +359,13 @@ def get_input(cls, id):
raise Wait
if status == 'failed':
raise DataError("Can't handle broken input", id)
return replicas
return [(id, str(url)) for id, url in replicas]

@classmethod
def get_inputs(cls, done=False, exclude=()):
while not done:
done, inputs = cls.send('INPUT')
for id, status, urls in inputs:
for id, _status, _replicas in inputs:
if id not in exclude:
yield IDedInput((cls, id))
exclude += (id, )
Expand Down

0 comments on commit 96e5b18

Please sign in to comment.