From 54d5008e3f145e26bc58bdd7746623e261c19dbe Mon Sep 17 00:00:00 2001 From: Josh Levinger Date: Thu, 21 Sep 2017 16:49:39 -0700 Subject: [PATCH] Do not write yacc tables to filesystem --- flanker/addresslib/parser.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/flanker/addresslib/parser.py b/flanker/addresslib/parser.py index 16b7e4ef..c28f818f 100644 --- a/flanker/addresslib/parser.py +++ b/flanker/addresslib/parser.py @@ -159,23 +159,28 @@ def p_error(p): log.info('building mailbox parser') mailbox_parser = yacc.yacc( - start='mailbox', errorlog=log) + start='mailbox', errorlog=log, + write_tables=False) log.info('building addr_spec parser') addr_spec_parser = yacc.yacc( - start='addr_spec', errorlog=log) + start='addr_spec', errorlog=log, + write_tables=False) log.info('building url parser') url_parser = yacc.yacc( - start='url', errorlog=log) + start='url', errorlog=log, + write_tables=False) log.info('building mailbox_or_url parser') mailbox_or_url_parser = yacc.yacc( - start='mailbox_or_url', errorlog=log) + start='mailbox_or_url', errorlog=log, + write_tables=False) log.info('building mailbox_or_url_list parser') mailbox_or_url_list_parser = yacc.yacc( - start='mailbox_or_url_list', errorlog=log) + start='mailbox_or_url_list', errorlog=log, + write_tables=False) # Interactive prompt for easy debugging