nunpack TypeError fix
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@246 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
3305c07ba2
commit
69d9d85685
|
@ -98,7 +98,7 @@ def nunpack(s, default=0):
|
|||
elif l == 4:
|
||||
return unpack('>L', s)[0]
|
||||
else:
|
||||
return TypeError('invalid length: %d' % l)
|
||||
raise TypeError('invalid length: %d' % l)
|
||||
|
||||
# decode_text
|
||||
PDFDocEncoding = ''.join( unichr(x) for x in (
|
||||
|
|
Loading…
Reference in New Issue