Skip to content

Commit 0e3f6e0

Browse files
committed
Fix EOF check to ensure that we have no bits left in temporary storage too; bumped version and copyright year
1 parent 3c1a982 commit 0e3f6e0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ to install the package manually using `pip` Python package manager.
4848
Licensing
4949
------------------------------
5050

51-
Copyright 2015-2018 Kaitai Project: MIT license
51+
Copyright 2015-2019 Kaitai Project: MIT license
5252

5353
Permission is hereby granted, free of charge, to any person obtaining
5454
a copy of this software and associated documentation files (the

kaitaistruct.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# KS runtime library by this version number;
1313
# * distribution utils (setup.py) use this when packaging for PyPI
1414
#
15-
__version__ = '0.8'
15+
__version__ = '0.9'
1616

1717

1818
class KaitaiStruct(object):
@@ -66,6 +66,9 @@ def close(self):
6666
# ========================================================================
6767

6868
def is_eof(self):
69+
if self.bits_left > 0:
70+
return False
71+
6972
io = self._io
7073
t = io.read(1)
7174
if t == b'':

0 commit comments

Comments
 (0)