def _contents(self):
    try:
      return self.stream().getvalue()
    except AttributeError:


      return ''
Make sure that publishing works
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/logservice/logservice.py/LogsBuffer._contents--crossover with--dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_library/test/internal/publishers/test_multi_publisher.py/TestMultiPublisher.test_publish