Skip to content

Commit

Permalink
fix queue (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
eb8680 authored and neerajprad committed Mar 2, 2018
1 parent bc7e984 commit fb6acc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyro/poutine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import absolute_import, division, print_function

import functools
from six.moves import xrange

from pyro.poutine import util

Expand Down Expand Up @@ -220,7 +221,7 @@ def queue(fn, queue, max_tries=None,

def _fn(*args, **kwargs):

for i in range(max_tries):
for i in xrange(max_tries):
assert not queue.empty(), \
"trying to get() from an empty queue will deadlock"

Expand Down

0 comments on commit fb6acc1

Please sign in to comment.