NewLionwang / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

Variable 'as' in bgp becomes problematic in future python #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The 'as' variable used in the bgps Open, Aggregator and Community classes
will generate a syntax error when used with python 2.6 (2.5 gives a
warning, the integrated python interpreter in eric  - also 2.5 - already
bails out)

"as" will become a reserved keyword in python 2.6. See warning in python 2.5.2

'as' should be changed to something like 'asn' or 'asnumber' which works.

Original issue reported on code.google.com by mattia.r...@gmail.com on 19 Aug 2008 at 4:51

GoogleCodeExporter commented 8 years ago
Thanks for reporting, 'as' has been renamed to 'asn' in the affected classes of 
the
BGP module in r51.

Original comment by jon.ober...@gmail.com on 19 Aug 2008 at 6:16