Commit d04be014 authored by Balint Reczey's avatar Balint Reczey Committed by João Valverde

Ply parser updated to 3.8 from

The Ubuntu packaged Ply 3.7 with Ubuntu 16.04's Python makes
ASN.1 based dissector generation fail.

Ply's API changed after 3.5 and the small change to
adapts to that.
The commit breaking the API in Ply's repository is the following:

 commit af651673ba6117a0a5405055a92170fffd028106
 Author: David Beazley <>
 Date:   Tue Apr 21 16:31:32 2015 -0500

    Added optional support for defaulted states

Change-Id: I1db33fdcccf7c39ecdb0e435a5ea9183362471ad
Bug: 12621
Reviewed-on: Balint Reczey's avatarBalint Reczey <>
Petri-Dish: Balint Reczey <>
Tested-by: default avatarPetri Dish Buildbot <>
Reviewed-by: default avatarJoão Valverde <>
Tested-by: default avatarJoão Valverde <>
parent 92eecfd2
......@@ -7949,7 +7949,8 @@ def eth_main():
if ectx.dbg('y'): yd = 1
if ectx.dbg('p'): pd = 2
lexer = lex.lex(debug=ld)
yacc.yacc(method='LALR', debug=yd)
parser = yacc.yacc(method='LALR', debug=yd)
parser.defaulted_states = {}
g_conform = ectx.conform
ast = []
for fn in args:
This diff is collapsed.
This diff is collapsed.
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