Skip to content
Snippets Groups Projects
Commit 37fd73bb authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

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)
parent a23e4683
No related branches found
Tags debian/2.6.5-7
No related merge requests found
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 python-defaults (2.6.5-6) unstable; urgency=low
[ Piotr Ożarowski ] [ Piotr Ożarowski ]
......
...@@ -314,11 +314,7 @@ def requested_versions_bis(vstring, version_only=False): ...@@ -314,11 +314,7 @@ def requested_versions_bis(vstring, version_only=False):
return versions return versions
def extract_pyversion_attribute_bis(fn): def extract_pyversion_attribute_bis(fn):
try: vstring = file(fn).readline().rstrip('\n')
vstring = file(fn).readline().rstrip('\n')
except IOError, msg:
print msg
sys.exit(3)
return vstring return vstring
def main(): def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment