From 5487b03059d688c73cd51cc734b414ce4fe45ecb Mon Sep 17 00:00:00 2001 From: Scott Kitterman <scott@kitterman.com> Date: Tue, 10 Aug 2010 22:28:48 -0400 Subject: [PATCH] In pyversions, do not silently ignore Python 3 versions --- debian/changelog | 3 ++- debian/pyversions.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index d5eede8..c9c09b1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ python-defaults (2.6.5-13) UNRELEASED; urgency=low * Python policy changes for X-Python-Version and X-Python3-Version - Minimum changes for Squeeze + * In pyversions, do not silently ignore Python 3 versions - -- Scott Kitterman <scott@kitterman.com> Tue, 10 Aug 2010 22:22:49 -0400 + -- Scott Kitterman <scott@kitterman.com> Tue, 10 Aug 2010 22:27:20 -0400 python-defaults (2.6.5-12) unstable; urgency=low diff --git a/debian/pyversions.py b/debian/pyversions.py index 7c50300..06100b2 100644 --- a/debian/pyversions.py +++ b/debian/pyversions.py @@ -56,8 +56,9 @@ def parse_versions(vstring, add_exact=False): raise ValueError('error parsing Python-Version attribute') op, v = m.group(1), m.group(2) vmaj, vmin = v.split('.') - if int(vmaj) > 2: - continue + # Don't silently ignore Python 3 versions for Squeeze. + #if int(vmaj) > 2: + # continue if op in (None, '='): exact_versions.add(v) else: -- GitLab