projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42dbb9b
)
Allow JPK file versions up to 0.12 (unfinished).
author
W. Trevor King
<wking@drexel.edu>
Wed, 8 Sep 2010 14:38:10 +0000
(10:38 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Wed, 8 Sep 2010 14:38:10 +0000
(10:38 -0400)
hooke/driver/jpk.py
patch
|
blob
|
history
diff --git
a/hooke/driver/jpk.py
b/hooke/driver/jpk.py
index 8ca521d80ee3d78fe275cffdef09c25b3a1a6cb6..bcacd85e288f8494b4fe48d285eb7a536ac459e5 100644
(file)
--- 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'])