From 92b221aa105afe8cb581a29c108272223458c28d Mon Sep 17 00:00:00 2001 From: Anze Date: Sun, 8 May 2022 22:01:34 +0200 Subject: [PATCH] Fix: f-strings might not be supported --- netflow/v9.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netflow/v9.py b/netflow/v9.py index 4723313..adfd169 100644 --- a/netflow/v9.py +++ b/netflow/v9.py @@ -222,7 +222,7 @@ def __init__(self, data, template): elif flen == 1: struct_format += 'B' else: - struct_format += f'{flen}s' + struct_format += '%ds' % flen struct_len += flen while offset <= (self.length - padding_size):