Пример #1
0
def compare_files(pyc_filename1, pyc_filename2):
	"""Compare two .pyc files."""
	version, code_obj1 = uncompyle._load_module(pyc_filename1)
	version, code_obj2 = uncompyle._load_module(pyc_filename2)
	cmp_code_objects(version, code_obj1, code_obj2)
Пример #2
0
def compare_files(pyc_filename1, pyc_filename2):
    """Compare two .pyc files."""
    version, code_obj1 = uncompyle._load_module(pyc_filename1)
    version, code_obj2 = uncompyle._load_module(pyc_filename2)
    cmp_code_objects(version, code_obj1, code_obj2)
Пример #3
0
def compare_code_with_srcfile(pyc_filename, src_filename):
	"""Compare a .pyc with a source code file."""
	version, code_obj1 = uncompyle._load_module(pyc_filename)
	code_obj2 = uncompyle._load_file(src_filename)
	cmp_code_objects(version, code_obj1, code_obj2)
Пример #4
0
def compare_code_with_srcfile(pyc_filename, src_filename):
    """Compare a .pyc with a source code file."""
    version, code_obj1 = uncompyle._load_module(pyc_filename)
    code_obj2 = uncompyle._load_file(src_filename)
    cmp_code_objects(version, code_obj1, code_obj2)