Deprecate host_version #1509

This commit is contained in:
Wade Brainerd 2009-10-16 22:42:03 -04:00 committed by Simon Schampijer
parent f8ef93bd21
commit 63a5dcef05

View File

@ -74,18 +74,6 @@ class ContentBundle(Bundle):
section = 'Library'
if cp.has_option(section, 'host_version'):
version = cp.get(section, 'host_version')
try:
if int(version) != 1:
raise MalformedBundleException(
'Content bundle %s has unknown host_version '
'number %s' % (self._path, version))
except ValueError:
raise MalformedBundleException(
'Content bundle %s has invalid host_version number %s' %
(self._path, version))
if cp.has_option(section, 'name'):
self._name = cp.get(section, 'name')
else: