def get_a_message(conn, queue): 
  message = None
  try:
    myq = conn.get_queue(queue)
    q_length = myq.count()
    if q_length > 0:
      message = myq.read()
  except:
    raise
  return message
This decorator can be used to mark a function or method as environment
dataset/ETHPy150Open wcannon/saltconf2015/archived/salt/keymanager/sqs.py/get_a_message--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/utils.py/environmentfunction