diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-02-18 13:40:21 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-02-18 15:49:36 +0100 |
| commit | 3721f1f0cc739e06b2bcda892fdf4a7cab83dddb (patch) | |
| tree | 76510289e4de2fcba1c2c5427454db984f27fe31 /miasm2/core/interval.py | |
| parent | 965dca50ea4c179f4bb42b862154c13de8b8cff4 (diff) | |
| download | miasm-3721f1f0cc739e06b2bcda892fdf4a7cab83dddb.tar.gz miasm-3721f1f0cc739e06b2bcda892fdf4a7cab83dddb.zip | |
Core/Interval: `interval.cannon_list` should be a `staticmethod`
Diffstat (limited to 'miasm2/core/interval.py')
| -rw-r--r-- | miasm2/core/interval.py | 5 |
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 = [] |