diff --git a/debian/changelog b/debian/changelog
index 937e116638779dbfa3c59ee9c15091ec8fcc5b07..3eb4a3c52d845075bf13de0250bfd7cb71ba17a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,7 +5,11 @@ python-defaults (2.6.5-2) UNRELEASED; urgency=low
   * debian/copyright: Add a note about dh_python2, pycompile, pyclean and
     debpython module in
 
- -- Matthias Klose <doko@debian.org>  Tue, 18 May 2010 12:28:25 +0200
+  [ Scott Kitterman ]
+  * debian/pyversions.py: Exclude python3 versions from results - those are
+    handled by py3versions in python3-defaults
+
+ -- Matthias Klose <doko@debian.org>  Tue, 18 May 2010 12:28:25 +0200  Sat, 05 Jun 2010 18:59:57 -0400
 
 python-defaults (2.6.5-1) experimental; urgency=low
 
diff --git a/debian/pyversions.py b/debian/pyversions.py
index c98166ca783aa7482d1cb6cddeb016e2f9812098..b664671250459a70bcd0109a40a89e4579f520ae 100644
--- a/debian/pyversions.py
+++ b/debian/pyversions.py
@@ -48,7 +48,12 @@ def parse_versions(vstring, add_exact=False):
         ve = re.compile('(>=|<=|<<|=)? *(\d\.\d)$')
         m = ve.match(field)
         try:
+            if not m:
+                raise ValueError('error parsing Python-Version attribute')
             op, v = m.group(1), m.group(2)
+            vmaj, vmin = v.split('.')
+            if int(vmaj) > 2:
+                continue
             if op in (None, '='):
                 exact_versions.add(v)
             else:
@@ -201,7 +206,7 @@ def requested_versions(vstring, version_only=False):
         if 'vexact' in vinfo:
             versions.update(vinfo['vexact'])
     else:
-        raise ValueError, 'error in version string'
+        raise ValueError, 'No python versions in version string'
     if not versions:
         raise PyCentralEmptyValueError, 'empty set of versions'
     if version_only: