about summary refs log tree commit diff stats
path: root/miasm2/core/interval.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/core/interval.py')
-rw-r--r--miasm2/core/interval.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm2/core/interval.py b/miasm2/core/interval.py
index fc3dc7fc..d76cbd15 100644
--- a/miasm2/core/interval.py
+++ b/miasm2/core/interval.py
@@ -52,10 +52,11 @@ class interval(object):
         for inter in self.intervals:
             yield inter
 
-    @classmethod
-    def cannon_list(cls, tmp):
+    @staticmethod
+    def cannon_list(tmp):
         """
         Return a cannonizes list of intervals
+        @tmp: list of (int, int)
         """
         tmp = sorted([x for x in tmp if x[0] <= x[1]])
         out = []