From 57a7c7a5fee82b5e9798f6453819b245767ee566 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 23 Oct 2024 14:10:55 -0700 Subject: [PATCH] Allow running the YAPF formatter using Python version 3.11 (flutter/engine#56062) --- engine/src/flutter/tools/yapf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/yapf.sh b/engine/src/flutter/tools/yapf.sh index bab007132d..382cc0c211 100755 --- a/engine/src/flutter/tools/yapf.sh +++ b/engine/src/flutter/tools/yapf.sh @@ -42,8 +42,8 @@ else python3 -c " import sys version = sys.version_info -if (version.major, version.minor) > (3, 10): - print(f'Error: python3 version {version.major}.{version.minor} is greater than 3.10.', file=sys.stderr) +if (version.major, version.minor) > (3, 11): + print(f'Error: python3 version {version.major}.{version.minor} is greater than 3.11.', file=sys.stderr) sys.exit(1) else: print(f'Using python3 version {version.major}.{version.minor}.')