summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control4
-rw-r--r--pysupport.py4
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 <joss@debian.org>
Uploaders: Bernd Zeimetz <bzed@debian.org>, Piotr Ożarowski <piotr@debian.org>
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(',')]