1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
From: Roland Mas <lolando@debian.org>
Date: Wed, 8 Oct 2025 10:44:34 +0200
Subject: Use python3 interpreter
---
scripts/documentation_provider.py | 2 +-
scripts/generate_async_api.py | 2 +-
scripts/generate_sync_api.py | 2 +-
scripts/update_api.sh | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/scripts/documentation_provider.py b/scripts/documentation_provider.py
index 6ea931f..3026ec4 100644
--- a/scripts/documentation_provider.py
+++ b/scripts/documentation_provider.py
@@ -32,7 +32,7 @@ class DocumentationProvider:
self.links: Dict[str, str] = {}
self.printed_entries: List[str] = []
process_output = subprocess.run(
- ["python", "-m", "playwright", "print-api-json"],
+ ["python3", "-m", "playwright", "print-api-json"],
check=True,
capture_output=True,
)
diff --git a/scripts/generate_async_api.py b/scripts/generate_async_api.py
index ca52ef1..3e4d951 100755
--- a/scripts/generate_async_api.py
+++ b/scripts/generate_async_api.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright (c) Microsoft Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/scripts/generate_sync_api.py b/scripts/generate_sync_api.py
index 01d6cb0..8029d32 100755
--- a/scripts/generate_sync_api.py
+++ b/scripts/generate_sync_api.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright (c) Microsoft Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/scripts/update_api.sh b/scripts/update_api.sh
index 616df73..e361142 100755
--- a/scripts/update_api.sh
+++ b/scripts/update_api.sh
@@ -6,7 +6,7 @@ function update_api {
generate_script="$2"
git checkout HEAD -- "$file_name"
- if PYTHONIOENCODING=utf-8 python "$generate_script" > .x; then
+ if PYTHONIOENCODING=utf-8 python3 "$generate_script" > .x; then
mv .x "$file_name"
pre-commit run --files $file_name
echo "Regenerated APIs"
@@ -21,4 +21,4 @@ update_api "playwright/async_api/_generated.py" "scripts/generate_async_api.py"
playwright install
-python scripts/update_versions.py
+python3 scripts/update_versions.py
|