File: python3.diff

package info (click to toggle)
passenger 6.0.26%2Bds-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 58,744 kB
  • sloc: cpp: 701,269; ruby: 44,712; ansic: 27,819; javascript: 5,948; python: 1,158; sh: 1,000; makefile: 51
file content (35 lines) | stat: -rw-r--r-- 1,370 bytes parent folder | download
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
From: Matthias Klose <doko@debian.org>
Date: Fri, 6 May 2022 12:58:18 -0300
Subject: Drop usage of python2, use python3 by default

---
 src/cxx_supportlib/Constants.h                     | 2 +-
 src/ruby_supportlib/phusion_passenger/constants.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cxx_supportlib/Constants.h b/src/cxx_supportlib/Constants.h
index 5fb2f54..770167d 100644
--- a/src/cxx_supportlib/Constants.h
+++ b/src/cxx_supportlib/Constants.h
@@ -62,7 +62,7 @@
 #define DEFAULT_MBUF_CHUNK_SIZE 4096
 #define DEFAULT_NODEJS "nodejs"
 #define DEFAULT_POOL_IDLE_TIME 300
-#define DEFAULT_PYTHON "python"
+#define DEFAULT_PYTHON "python3"
 #define DEFAULT_RESPONSE_BUFFER_HIGH_WATERMARK 134217728
 #define DEFAULT_RUBY "ruby"
 #define DEFAULT_SOCKET_BACKLOG 2048
diff --git a/src/ruby_supportlib/phusion_passenger/constants.rb b/src/ruby_supportlib/phusion_passenger/constants.rb
index 63a6bfe..b4f557f 100644
--- a/src/ruby_supportlib/phusion_passenger/constants.rb
+++ b/src/ruby_supportlib/phusion_passenger/constants.rb
@@ -49,7 +49,7 @@ module SharedConstants
     DEFAULT_INTEGRATION_MODE = "standalone"
     DEFAULT_SOCKET_BACKLOG = 2048
     DEFAULT_RUBY = "ruby"
-    DEFAULT_PYTHON = "python"
+    DEFAULT_PYTHON = "python3"
     DEFAULT_NODEJS = "nodejs"
     DEFAULT_MAX_POOL_SIZE = 6
     DEFAULT_POOL_IDLE_TIME = 300