diff --git a/sepolgen/src/sepolgen/yacc.py b/sepolgen/src/sepolgen/yacc.py index caf98af7..58332de3 100644 --- a/sepolgen/src/sepolgen/yacc.py +++ b/sepolgen/src/sepolgen/yacc.py @@ -67,7 +67,7 @@ default_lr = 'LALR' # Default LR table generation method error_count = 3 # Number of symbols that must be shifted to leave recovery mode -import re, types, sys, cStringIO, md5, os.path +import re, types, sys, cStringIO, hashlib, os.path # Exception raised for yacc-related errors class YaccError(Exception): pass @@ -506,7 +506,7 @@ def initialize_vars(): Errorfunc = None # User defined error handler - Signature = md5.new() # Digital signature of the grammar rules, precedence + Signature = hashlib.md5() # Digital signature of the grammar rules, precedence # and other information. Used to determined when a # parsing table needs to be regenerated.