mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: remove Python version 2 checks
These were included for when Python2 was still often the default.
This commit is contained in:
parent
0bd5f958ea
commit
dcdbd43cff
4 changed files with 1 additions and 25 deletions
|
|
@ -327,8 +327,4 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
main()
|
||||||
if sys.version_info.major < 3:
|
|
||||||
print("Incorrect Python version, use Python 3 or newer!")
|
|
||||||
else:
|
|
||||||
main()
|
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,6 @@ __all__ = (
|
||||||
"main",
|
"main",
|
||||||
)
|
)
|
||||||
|
|
||||||
import sys
|
|
||||||
if sys.version_info.major < 3:
|
|
||||||
print("\nPython3.x needed, found %s.\nAborting!\n" %
|
|
||||||
sys.version.partition(" ")[0])
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from os.path import (
|
from os.path import (
|
||||||
dirname,
|
dirname,
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,6 @@ __all__ = (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
import sys
|
|
||||||
if sys.version_info.major < 3:
|
|
||||||
print("\nPython3.x or newer needed, found %s.\nAborting!\n" %
|
|
||||||
sys.version.partition(" ")[0])
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from os.path import join, dirname, normpath, abspath
|
from os.path import join, dirname, normpath, abspath
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,13 +33,6 @@ from collections.abc import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
import sys
|
|
||||||
if sys.version_info.major < 3:
|
|
||||||
print("\nPython3.x needed, found %s.\nAborting!\n" %
|
|
||||||
sys.version.partition(" ")[0])
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
from os.path import (
|
from os.path import (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue