Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b13c765

Browse files
Declare flutter_gdb as a Python 2 script (#28138)
The script has not been ported to Python 3. The environment required by Python 3 (e.g. PYTHONHOME) may conflict with the environment expected by the Python 2 runtime linked into the version of GDB launched by the script.
1 parent 0591aba commit b13c765

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

ci/licenses_golden/licenses_skia

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 84d0a762b7ddb7d5817405df71c998dc
1+
Signature: 29d7ebca3e5cdc5e122f260a9ade4964
22

33
UNUSED LICENSES:
44

@@ -3346,8 +3346,6 @@ FILE: ../../../third_party/skia/bench/ClipMaskBench.cpp
33463346
FILE: ../../../third_party/skia/bench/ClipStrategyBench.cpp
33473347
FILE: ../../../third_party/skia/bench/PathTextBench.cpp
33483348
FILE: ../../../third_party/skia/bench/ShadowBench.cpp
3349-
FILE: ../../../third_party/skia/bin/gerrit-number
3350-
FILE: ../../../third_party/skia/bin/sysopen
33513349
FILE: ../../../third_party/skia/dm/DMGpuTestProcs.cpp
33523350
FILE: ../../../third_party/skia/example/HelloWorld.cpp
33533351
FILE: ../../../third_party/skia/example/HelloWorld.h

ci/licenses_golden/tool_signature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Signature: ba62ed10d5e046f90a397663d6c9d5d2
1+
Signature: 2b08c736bc3af2c5d770099c53112c83
22

sky/tools/flutter_gdb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python2
22
#
33
# Copyright 2013 The Flutter Authors. All rights reserved.
44
# Use of this source code is governed by a BSD-style license that can be

tools/licenses/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class _RepositorySourceFile extends _RepositoryLicensedFile {
7777

7878
fs.TextFile get ioTextFile => super.io as fs.TextFile;
7979

80-
static final RegExp _hashBangPattern = RegExp(r'^#! *(?:/bin/sh|/bin/bash|/usr/bin/env +(?:python|python3|bash))\b');
80+
static final RegExp _hashBangPattern = RegExp(r'^#! *(?:/bin/sh|/bin/bash|/usr/bin/env +(?:python[23]?|bash))\b');
8181

8282
@override
8383
bool get isShellScript {

0 commit comments

Comments
 (0)