about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2015-02-16 15:19:56 +0100
committerCamille Mougey <camille.mougey@cea.fr>2015-02-16 15:32:47 +0100
commit3d14c127bfbf9575455efbf5c54edc68d4afdcc1 (patch)
tree38d3b57b5a28cc118763af3fc3f5138187175684
parentc230046b456f42d41cb01ab1c3c3e7e5f0f198ac (diff)
downloadmiasm-3d14c127bfbf9575455efbf5c54edc68d4afdcc1.tar.gz
miasm-3d14c127bfbf9575455efbf5c54edc68d4afdcc1.zip
PyLint: Remove bad `super` calls
miasm2/arch/msp430/arch.py:501: [E1003(bad-super-call), bs_cond_off_s.encode] Bad first argument 'bs_cond' given to super()
miasm2/arch/x86/arch.py:2592: [E1003(bad-super-call), bs_cond_scale.encode] Bad first argument 'bs_cond' given to super()
-rw-r--r--miasm2/arch/msp430/arch.py2
-rw-r--r--miasm2/arch/x86/arch.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/msp430/arch.py b/miasm2/arch/msp430/arch.py
index 038c327f..02e3ca60 100644
--- a/miasm2/arch/msp430/arch.py
+++ b/miasm2/arch/msp430/arch.py
@@ -498,7 +498,7 @@ class bs_cond_off_s(bs_cond):
             raise NotImplementedError("unknown value v[a_s] = %d" % v['a_s'])
 
     def encode(self):
-        return super(bs_cond, self).encode()
+        return super(bs_cond_off_s, self).encode()
 
     def decode(self, v):
         if self.l == 0:
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index e9103ace..8f9a1f79 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -2589,7 +2589,7 @@ class bs_cond_scale(bs_cond):
             self.value = 0
             self.l = 0
             return True
-        return super(bs_cond, self).encode()
+        return super(bs_cond_scale, self).encode()
 
     def decode(self, v):
         self.value = v