Ethereal-dev: Re: [Ethereal-dev] H235 & ASN1 compiler

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxxxxxxx>
Date: Tue, 25 May 2004 15:13:58 -0500
On Tuesday 25 May 2004 11:04, Ronnie Sahlberg wrote:
> ----- Original Message -----
> From: "Guy Harris"
> Sent: Wednesday, May 26, 2004 4:23 AM
> Subject: Re: [Ethereal-dev] H235 & ASN1 compiler
>
> > On Tue, May 25, 2004 at 04:49:03PM +1000, Ronnie Sahlberg wrote:
> > > (To get this to work, i had to upgrade python from 1.5 to 2.2    
> > > bloody bleading edge requirements :-)
> >
> > What happens with Python 1.5?  Does the ASN.1-to-dissector translator
> > not work at all?
>
> [sahlberg@Derek h235]$ python ../../tools/asn2eth.py -X -p h235 -c
> h235.cnf -s packet-h235-template H235-SECURITY-MESSAGES.asn
> File "../../tools/asn2eth.py", line 221
> if (t.value.find("\n") >= 0) : t.lineno += 1
>                                                                  ^


Change it to:

t.lineno = t.lineno + 1

for compatibility with Python 1.5

--gilbert