Skip to content
Snippets Groups Projects
Unverified Commit 8f0899d4 authored by xz-dev's avatar xz-dev
Browse files

Remove deprecated distutils.util.strtobool

parent 36100d31
No related branches found
No related tags found
1 merge request!30Remove deprecated distutils.util.strtobool for python 3.12
import sys
import argparse
from distutils.util import strtobool
from lottie.utils.string_utils import strtobool
if __name__ == "__main__":
......
from xml.dom import minidom
from distutils.util import strtobool
from lottie.nvector import NVector
from lottie.parsers.sif.sif.frame_time import FrameTime
from lottie.utils.string_utils import strtobool
class _tag:
......
def strtobool(value):
match value:
case "y" | "yes" | "t" | "true" | "on" | "1":
return True
case "n" | "no" | "f" | "false" | "off" | "0":
return False
raise ValueError
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment