We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f398806 commit 131b292Copy full SHA for 131b292
pyobs/IO/bdio.py
@@ -174,10 +174,10 @@ def read_bdio_header(self):
174
hdr = self.read(dtypes.INT32, 5)
175
pyobs.assertion(hdr[0] == self.BDIO_MAGIC, "Not a bdio file")
176
rlen = hdr[1] & int("00000fff", 16)
177
- self.header["version"] = (hdr[1] & int("ffff0000", 16)) >> 16
+ self.header["version"] = (int(hdr[1]) & int("ffff0000", 16)) >> 16
178
pyobs.assertion(self.header["version"] == self.BDIO_VERSION, "Not a bdio file")
179
self.header["dirinfo"] = [
180
- (hdr[2] & int("ffc00000", 16)) >> 22,
+ (int(hdr[2]) & int("ffc00000", 16)) >> 22,
181
(hdr[2] & int("003fffff", 16)),
182
]
183
self.header["ctime"] = datetime.datetime.fromtimestamp(hdr[3])
0 commit comments