Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
P
python-lottie
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
Glax
python-lottie
Commits
8f0899d4
Unverified
Commit
8f0899d4
authored
5 months ago
by
xz-dev
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated distutils.util.strtobool
parent
36100d31
No related branches found
Branches containing commit
No related tags found
1 merge request
!30
Remove deprecated distutils.util.strtobool for python 3.12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
addons/inkscape/tgs_output.py
+1
-1
1 addition, 1 deletion
addons/inkscape/tgs_output.py
lib/lottie/parsers/sif/xml/utils.py
+1
-1
1 addition, 1 deletion
lib/lottie/parsers/sif/xml/utils.py
lib/lottie/utils/string_utils.py
+7
-0
7 additions, 0 deletions
lib/lottie/utils/string_utils.py
with
9 additions
and
2 deletions
addons/inkscape/tgs_output.py
+
1
−
1
View file @
8f0899d4
import
sys
import
argparse
from
distutils.
util
import
strtobool
from
lottie.utils.string_
util
s
import
strtobool
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
lib/lottie/parsers/sif/xml/utils.py
+
1
−
1
View file @
8f0899d4
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
:
...
...
This diff is collapsed.
Click to expand it.
lib/lottie/utils/string_utils.py
0 → 100644
+
7
−
0
View file @
8f0899d4
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment