Show More
@@ -439,12 +439,14 b' def _fm1readmarkers(data, off):' | |||
|
439 | 439 | formats = {_fm0version: (_fm0readmarkers, _fm0encodeonemarker), |
|
440 | 440 | _fm1version: (_fm1readmarkers, _fm1encodeonemarker)} |
|
441 | 441 | |
|
442 | def _readmarkerversion(data): | |
|
443 | return _unpack('>B', data[0:1])[0] | |
|
444 | ||
|
442 | 445 | @util.nogc |
|
443 | 446 | def _readmarkers(data): |
|
444 | 447 | """Read and enumerate markers from raw data""" |
|
445 | off = 0 | |
|
446 | diskversion = _unpack('>B', data[off:off + 1])[0] | |
|
447 | off += 1 | |
|
448 | diskversion = _readmarkerversion(data) | |
|
449 | off = 1 | |
|
448 | 450 | if diskversion not in formats: |
|
449 | 451 | msg = _('parsing obsolete marker: unknown version %r') % diskversion |
|
450 | 452 | raise error.UnknownVersion(msg, version=diskversion) |
General Comments 0
You need to be logged in to leave comments.
Login now