diff options
| author | Camille Mougey <commial@gmail.com> | 2016-01-30 22:54:31 +0100 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2016-01-30 22:54:31 +0100 |
| commit | 3672de7c319f39273cb7e34797cb928f424ff7c4 (patch) | |
| tree | b2b8f867dbec627940b2be9406ae87a009c731bf /miasm2/core/utils.py | |
| parent | dbf10438741443d59b8db500905d3d110a34c73c (diff) | |
| parent | d1eaeba1aab93a918d858750e2cc11a7ea283fbd (diff) | |
| download | miasm-3672de7c319f39273cb7e34797cb928f424ff7c4.tar.gz miasm-3672de7c319f39273cb7e34797cb928f424ff7c4.zip | |
Merge pull request #314 from serpilliere/graph_ir_asm
Graph ir asm
Diffstat (limited to 'miasm2/core/utils.py')
| -rw-r--r-- | miasm2/core/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/core/utils.py b/miasm2/core/utils.py index 30aff7d2..70520c1b 100644 --- a/miasm2/core/utils.py +++ b/miasm2/core/utils.py @@ -53,7 +53,7 @@ def whoami(): class BoundedDict(UserDict.DictMixin): - """Limited in size dictionnary. + """Limited in size dictionary. To reduce combinatory cost, once an upper limit @max_size is reached, @max_size - @min_size elements are suppressed. @@ -65,7 +65,7 @@ class BoundedDict(UserDict.DictMixin): def __init__(self, max_size, min_size=None, initialdata=None, delete_cb=None): """Create a BoundedDict - @max_size: maximum size of the dictionnary + @max_size: maximum size of the dictionary @min_size: (optional) number of most used element to keep when resizing @initialdata: (optional) dict instance with initial data @delete_cb: (optional) callback called when an element is removed @@ -121,7 +121,7 @@ class BoundedDict(UserDict.DictMixin): @property def data(self): - "Return the current instance as a dictionnary" + "Return the current instance as a dictionary" return self._data def __getitem__(self, key): |