From 0b370e449ba9ea343a991f1702d3e93b0ef38e3d Mon Sep 17 00:00:00 2001 From: xuhy Date: Mon, 24 Jun 2024 09:57:28 +0800 Subject: Support python3. python & python2 are not available on Ubuntu 24.04. Change-Id: I150aefa7588025eff5dff5fd769a2f50ed9c7aef --- debian/control | 4 ++-- pysupport.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index b863d63..ad547dd 100644 --- a/debian/control +++ b/debian/control @@ -4,14 +4,14 @@ Priority: optional Maintainer: Josselin Mouette Uploaders: Bernd Zeimetz , Piotr Ożarowski Build-Depends: debhelper (>= 7), cdbs -Build-Depends-Indep: python | python2 +Build-Depends-Indep: python3 Standards-Version: 3.9.3 Vcs-Svn: svn://anonscm.debian.org/collab-maint/deb-maint/python-support/trunk Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/python-support/trunk/ Package: python-support Architecture: all -Depends: python | python2, python-minimal | python2-minimal, dpkg (>= 1.14.19), ${misc:Depends} +Depends: python3, python3-minimal, dpkg (>= 1.14.19), ${misc:Depends} Conflicts: debhelper (<< 5.0.38) Description: automated rebuilding support for Python modules This package contains the 'update-python-modules' script, which takes diff --git a/pysupport.py b/pysupport.py index 4666f4b..8de202d 100644 --- a/pysupport.py +++ b/pysupport.py @@ -1,7 +1,7 @@ import os -from ConfigParser import SafeConfigParser +from ConfigParser import ConfigParser -config = SafeConfigParser() +config = ConfigParser() config.readfp(file('/usr/share/python/debian_defaults')) versions = config.get('DEFAULT', 'supported-versions') py_supported = [s.strip() for s in versions.split(',')] -- cgit v1.2.3