diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-02-18 14:47:01 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-02-18 20:42:54 +0100 |
| commit | a2e461cc51a25ccc98e0de43ca87374edce412b4 (patch) | |
| tree | c583f3d8d864b81abcfb56ceda173aa5c23c5718 /miasm2/jitter/loader/pe.py | |
| parent | d2cc082ba50397609e186d516b75226d638841d3 (diff) | |
| download | miasm-a2e461cc51a25ccc98e0de43ca87374edce412b4.tar.gz miasm-a2e461cc51a25ccc98e0de43ca87374edce412b4.zip | |
PyLint: Remove keyword redefinition, bad open mode
Diffstat (limited to 'miasm2/jitter/loader/pe.py')
| -rw-r--r-- | miasm2/jitter/loader/pe.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/jitter/loader/pe.py b/miasm2/jitter/loader/pe.py index f7e93c52..a3834d03 100644 --- a/miasm2/jitter/loader/pe.py +++ b/miasm2/jitter/loader/pe.py @@ -354,10 +354,10 @@ class libimp_pe(libimp): self.fad2cname[ad] = c_name self.fad2info[ad] = libad, imp_ord_or_name - def gen_new_lib(self, target_pe, filter=lambda _: True): + def gen_new_lib(self, target_pe, flt=lambda _: True): """Gen a new DirImport description @target_pe: PE instance - @filter: (boolean f(address)) restrict addresses to keep + @flt: (boolean f(address)) restrict addresses to keep """ new_lib = [] @@ -369,8 +369,8 @@ class libimp_pe(libimp): for func_name, dst_addresses in self.lib_imp2dstad[ad].items(): out_ads.update({addr:func_name for addr in dst_addresses}) - # Filter available addresses according to @filter - all_ads = [addr for addr in out_ads.keys() if filter(addr)] + # Filter available addresses according to @flt + all_ads = [addr for addr in out_ads.keys() if flt(addr)] log.debug('ads: %s' % map(hex, all_ads)) if not all_ads: continue |