From 37fd73bb345b05b98abe308e076c45dd9c052e38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Mon, 12 Jul 2010 19:49:38 +0200
Subject: [PATCH] pyversions.py: fall back to the list of supported Python
 versions if debian/pyversions doesn't exist (as in -5, closes: 588820, thanks
 to Vincent Legout)

---
 debian/changelog     | 8 ++++++++
 debian/pyversions.py | 6 +-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4c456c7..84cb256 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-defaults (2.6.5-7) unstable; urgency=low
+
+  * pyversions.py: fall back to the list of supported Python versions
+    if debian/pyversions doesn't exist (as in -5, closes: 588820, thanks to
+    Vincent Legout)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Mon, 12 Jul 2010 19:15:17 +0200
+
 python-defaults (2.6.5-6) unstable; urgency=low
 
   [ Piotr Ożarowski ]
diff --git a/debian/pyversions.py b/debian/pyversions.py
index d84b936..7c50300 100644
--- a/debian/pyversions.py
+++ b/debian/pyversions.py
@@ -314,11 +314,7 @@ def requested_versions_bis(vstring, version_only=False):
     return versions
 
 def extract_pyversion_attribute_bis(fn):
-    try:
-        vstring = file(fn).readline().rstrip('\n')
-    except IOError, msg:
-        print msg
-        sys.exit(3)
+    vstring = file(fn).readline().rstrip('\n')
     return vstring
 
 def main():
-- 
GitLab