Commit f8dff69c authored by Denis Bilenko's avatar Denis Bilenko

fix TypeError in examples/process.py

parent 8aa6b53c
...@@ -64,10 +64,10 @@ if __name__ == '__main__': ...@@ -64,10 +64,10 @@ if __name__ == '__main__':
# print the results (if available) # print the results (if available)
if job1.ready(): if job1.ready():
print 'finger: %s bytes: %s' % (len(job1.value), repr(job1.value)[:50]) print 'finger: %s bytes: %s' % (len(job1.value or ''), repr(job1.value)[:50])
else: else:
print 'finger: job is still running' print 'finger: job is still running'
if job2.ready(): if job2.ready():
print 'netstat: %s bytes: %s' % (len(job2.value), repr(job2.value)[:50]) print 'netstat: %s bytes: %s' % (len(job2.value or ''), repr(job2.value)[:50])
else: else:
print 'netstat: job is still running' print 'netstat: job is still running'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment