about summary refs log tree commit diff stats
path: root/miasm/os_dep/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm/os_dep/common.py')
-rw-r--r--miasm/os_dep/common.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/miasm/os_dep/common.py b/miasm/os_dep/common.py
index 87602b3c..0b4d7e11 100644
--- a/miasm/os_dep/common.py
+++ b/miasm/os_dep/common.py
@@ -130,16 +130,10 @@ def unix_to_sbpath(path):
 def get_fmt_args(fmt, cur_arg, get_str, get_arg_n):
     idx = 0
     fmt = get_str(fmt)
-    if isinstance(fmt, bytes):
-        chars_format = b'%cdfsuxX'
-        char_percent = b'%'
-        char_string = b's'
-        output = b""
-    else:
-        chars_format = u'%cdfsuxX'
-        char_percent = u'%'
-        char_string = u's'
-        output = u""
+    chars_format = '%cdfsuxX'
+    char_percent = '%'
+    char_string = 's'
+    output = ""
 
     while True:
         if idx == len(fmt):