render_povray: remove use of 'match' for Python 3.9 support

See D16030 for details.
This commit is contained in:
Campbell Barton 2022-09-22 13:44:59 +10:00
parent 0dd7b96286
commit 6bb18b9b5f
1 changed files with 6 additions and 7 deletions

View File

@ -122,13 +122,12 @@ def set_tab(tabtype, spaces):
The beginning blank space for each line of the generated pov file
"""
tab_str = ""
match tabtype:
case 'SPACE':
tab_str = spaces * " "
case 'NONE':
tab_str = ""
case 'TAB':
tab_str = "\t"
if tabtype == 'SPACE':
tab_str = spaces * " "
elif tabtype == 'NONE':
tab_str = ""
elif tabtype == 'TAB':
tab_str = "\t"
return tab_str