Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-09-07 15:58:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-07 15:58:16 +0300
commit870fcb3857ba36986d1d44ab4ac519897f8fb264 (patch)
tree5af1e3cb1010eebd7aa567a8b2bb0c64adc0a660 /source/blender/makesrna/rna_cleanup
parent272c53f8f01fef7190ac378fd32279054657f99b (diff)
Cleanup: change Python version checks to include newer versions
Diffstat (limited to 'source/blender/makesrna/rna_cleanup')
-rwxr-xr-xsource/blender/makesrna/rna_cleanup/rna_cleaner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner.py b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
index a936e6499bc..f107b5aee63 100755
--- a/source/blender/makesrna/rna_cleanup/rna_cleaner.py
+++ b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
@@ -321,7 +321,7 @@ def main():
if __name__ == '__main__':
import sys
- if not sys.version.startswith("3"):
- print("Incorrect python version, use python 3!")
+ if sys.version_info.major < 3:
+ print("Incorrect python version, use Python 3 or newer!")
else:
main()