Skip to content

Commit 0d67e29

Browse files
committed
Disable PLY's signature: it has inconsistent whitespace leading to failures
1 parent 339d84c commit 0d67e29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyomo/tpl/ply/yacc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,14 +3245,14 @@ def yacc(method='LALR', debug=yaccdebug, module=None, tabmodule=tab_module, star
32453245
raise YaccError('Unable to build parser')
32463246

32473247
# Check signature against table files (if any)
3248-
signature = pinfo.signature()
3248+
signature = '' # pinfo.signature() <-- this has unreliable amount of whitespace
32493249

32503250
if outputdir is None:
32513251
# Read the tables
32523252
lr = LRTable()
32533253
read_signature = lr.read_table(tabmodule)
32543254
if read_signature != signature:
3255-
raise YaccError(f"Parse table signature mismatch:\n\t{repr(read_signature)}\n\t{repr(signature)}")
3255+
raise YaccError(f"Parse table signature mismatch")
32563256
lr.bind_callables(pinfo.pdict)
32573257
return LRParser(lr, pinfo.error_func)
32583258

0 commit comments

Comments
 (0)