From: W. Trevor King Date: Wed, 8 Sep 2010 14:38:10 +0000 (-0400) Subject: Allow JPK file versions up to 0.12 (unfinished). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d4e877dfa7ebb48f1f7963f9a73cd83b53da0099;p=hooke.git Allow JPK file versions up to 0.12 (unfinished). --- diff --git a/hooke/driver/jpk.py b/hooke/driver/jpk.py index 8ca521d..bcacd85 100644 --- a/hooke/driver/jpk.py +++ b/hooke/driver/jpk.py @@ -77,7 +77,8 @@ class JPKDriver (Driver): for i in range(len([p for p in f.namelist() if p.endswith('segment-header.properties')])): segments.append(self._zip_segment(f, path, info, zip_info, i)) - if zip_info['file-format-version'] not in ['0.3', '0.4', '0.5']: + if zip_info['file-format-version'] not in ['0.%d' % i + for i in range(12)]: raise NotImplementedError( 'JPK file version %s not supported (yet).' % zip_info['file-format-version'])