Skip to content

Commit

Permalink
Release 2.4.199 and remove py38 leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Nov 24, 2024
1 parent a204497 commit 1e66dad
Show file tree
Hide file tree
Showing 3 changed files with 1,412 additions and 1,708 deletions.
16 changes: 15 additions & 1 deletion misp_modules/modules/expansion/vmray_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import json
import base64
from distutils.util import strtobool

import io
import zipfile
Expand Down Expand Up @@ -42,6 +41,21 @@
include_vmrayjobids = False


def strtobool(val):
"""Convert a string representation of truth to true (1) or false (0).
True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
'val' is anything else.
"""
val = val.lower()
if val in ('y', 'yes', 't', 'true', 'on', '1'):
return 1
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
return 0
else:
raise ValueError("invalid truth value %r" % (val,))


def handler(q=False):
global include_vmrayjobids

Expand Down
Loading

0 comments on commit 1e66dad

Please sign in to comment.