From 1c9d151e718865adefd01d9c6668ef84c2890c59 Mon Sep 17 00:00:00 2001 From: Ajax Date: Thu, 19 Mar 2015 10:04:24 +0100 Subject: Container: Init attributes with None --- miasm2/analysis/binary.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'miasm2/analysis/binary.py') diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py index f5cecc87..ff01cbc5 100644 --- a/miasm2/analysis/binary.py +++ b/miasm2/analysis/binary.py @@ -88,6 +88,12 @@ class Container(object): def __init__(self, *args, **kwargs): "Alias for 'parse'" + # Init attributes + self._executable = None + self._bin_stream = None + self._entry_point = None + + # Launch parsing self.parse(*args, **kwargs) @property -- cgit 1.4.1