Too late for that ;-)
Add a newline at the end of the file. Without it, it's not
valid syntax for the function dev.
-Clark
> -----Original Message-----
> From: jython-users-bounces@...
> [mailto:jython-users-bounces@...] On Behalf=20
> Of astigmatik@...
> Sent: Tuesday, April 24, 2007 11:30 AM
> To: jython-users@...
> Subject: [Jython-users] weird behavior
>=20
> I hope you folks are not sick of me already.. But here's=20
> something that is really baffling.
>=20
> This is from one of my scripts (including the commented lines)
>=20
> import re
> def test(session, data):
> pass
> # temp =3D re.search('^\:(\S+) \d+ \S+ \:?(.*)$', data)
> # temp.groups()
>=20
> When I try to run it, I get this error:
>=20
> C:\JYTHON2.2B1>jython odd.py
> Traceback (innermost last):
> (no code object) at line 0
> File "odd.py", line 5
> SyntaxError: invalid syntax
>=20
> Why is it giving me an error when those lines are supposed to=20
> be commented out?
>=20
> Thanks. And I hope somebody replies :-/
|