Revision 63b9b186 lib/backend.py

b/lib/backend.py
1495 1495
    return False, ("Error while reading the API version file at %s: %s" %
1496 1496
                   (api_file, _ErrnoOrStr(err)))
1497 1497

  
1498
  api_versions = [version.strip() for version in api_versions]
1499 1498
  try:
1500
    api_versions = [int(version) for version in api_versions]
1499
    api_versions = [int(version.strip()) for version in api_versions]
1501 1500
  except (TypeError, ValueError), err:
1502 1501
    return False, ("API version(s) can't be converted to integer: %s" %
1503 1502
                   str(err))

Also available in: Unified diff