MCPcopy Index your code
hub / github.com/ELMERIKH/PyinMemoryPE / retrieve_flags

Function retrieve_flags

pythonmemorymodule/pefile.py:687–698  ·  view source on GitHub ↗

Read the flags from a dictionary and return them in a usable form. Will return a list of (flag, value) for all flags in "flag_dict" matching the filter "flag_filter".

(flag_dict, flag_filter)

Source from the content-addressed store, hash-verified

685
686
687def retrieve_flags(flag_dict, flag_filter):
688 """Read the flags from a dictionary and return them in a usable form.
689
690 Will return a list of (flag, value) for all flags in "flag_dict"
691 matching the filter "flag_filter".
692 """
693
694 return [
695 (flag, flag_dict[flag])
696 for flag in flag_dict.keys()
697 if isinstance(flag, (str, bytes)) and flag.startswith(flag_filter)
698 ]
699
700
701def set_flags(obj, flag_field, flags):

Callers 5

__setattr__Method · 0.85
__parse__Method · 0.85
parse_sectionsMethod · 0.85
dump_infoMethod · 0.85
dump_dictMethod · 0.85

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected