I'm trying to compile a python program using jython and it's throwing below error
Traceback (innermost last):
(no code object) at line 0
File "test.py", line 30
html = html if html else download(url, user_agent).read()
SyntaxError: invalid syntax
Below is my python program. Please let me know how to resolve this.