Deprecate host_version #1509

master
Wade Brainerd 15 years ago committed by Simon Schampijer
parent f8ef93bd21
commit 63a5dcef05

@ -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:

Loading…
Cancel
Save