From d4e877dfa7ebb48f1f7963f9a73cd83b53da0099 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 8 Sep 2010 10:38:10 -0400 Subject: [PATCH] Allow JPK file versions up to 0.12 (unfinished). --- hooke/driver/jpk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']) -- 2.26.2