about summary refs log tree commit diff stats
path: root/miasm2/core/bin_stream.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-02-11 13:05:45 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-02-11 13:45:56 +0100
commitf68d21f7d8ec32d1378a403c4ccb0345f1d5ef56 (patch)
treef5bdc465d5d31a1013e88061dd3f0145f123b987 /miasm2/core/bin_stream.py
parent598f3609bdd47e57e72b3dee1bf53bbe1ecf62d4 (diff)
downloadmiasm-f68d21f7d8ec32d1378a403c4ccb0345f1d5ef56.tar.gz
miasm-f68d21f7d8ec32d1378a403c4ccb0345f1d5ef56.zip
bin_stream: Fix default argument for bin_stream_container
Diffstat (limited to 'miasm2/core/bin_stream.py')
-rw-r--r--miasm2/core/bin_stream.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/miasm2/core/bin_stream.py b/miasm2/core/bin_stream.py
index 9907c103..19614661 100644
--- a/miasm2/core/bin_stream.py
+++ b/miasm2/core/bin_stream.py
@@ -126,7 +126,7 @@ class bin_stream_file(bin_stream):
 
 class bin_stream_container(bin_stream):
 
-    def __init__(self, virt_view="", offset=0L):
+    def __init__(self, virt_view, offset=0L):
         bin_stream.__init__(self)
         self.bin = virt_view
         self.l = virt_view.max_addr()
@@ -154,8 +154,11 @@ class bin_stream_container(bin_stream):
     def setoffset(self, val):
         self.offset = val
 
+
 class bin_stream_pe(bin_stream_container):
     pass
+
+
 class bin_stream_elf(bin_stream_container):
     pass