diff --git a/debian/changelog b/debian/changelog
index 425d2470ed2156fb82835477e4e7972b86c93758..baf61c42dd25bd75dea56797d23ef39286047340 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ python-defaults (2.7.3-3) UNRELEASED; urgency=low
       python3-* ones
     - TODO: parse interpreter version number from --shebang option and add
       apropriate dependency/rt* script arguments
+  * pyversions.py: fix parsing DEBPYTHON_SUPPORTED env. variable
+    (versions should be separated using comma, as in debian_defaults
+    config file)
 
   [ Dmitry Shachnev ]
   * debian/python.{pre,post}rm.in: Handle purge command the same way as
diff --git a/debian/pyversions.py b/debian/pyversions.py
index 907beebb008d27f023dd8412de09df57df507dbf..e58babc276bbc44c86235855d2532726f45214b7 100644
--- a/debian/pyversions.py
+++ b/debian/pyversions.py
@@ -110,8 +110,9 @@ def unsupported_versions(version_only=False):
     else:
         return _unsupported_versions
 
-_supported_versions = ["python%s" % ver for ver in \
-                       os.environ.get('DEBPYTHON_SUPPORTED', '').split()]
+_supported_versions = ["python%s" % ver.strip() for ver in
+                       os.environ.get('DEBPYTHON_SUPPORTED', '').split(',')
+                       if ver.strip()]
 def supported_versions(version_only=False):
     global _supported_versions
     if not _supported_versions: