Skip to content

Commit 650c780

Browse files
author
phyber
committed
Get rid of seek magic number
1 parent fa46351 commit 650c780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tibudecrypt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import getpass
2525
import hashlib
2626
import hmac
27+
import io
2728
import os
2829
import six
2930
import sys
@@ -230,7 +231,7 @@ def main(args):
230231
with open(encrypted_file.filename, 'rb') as in_file, open(decrypted_filename, 'wb') as out_file:
231232
next_chunk = None
232233
finished = False
233-
in_file.seek(encrypted_file.data_offset, 0)
234+
in_file.seek(encrypted_file.data_offset, io.SEEK_SET)
234235

235236
while not finished:
236237
# Read and decrypt a chunk of encrypted data.

0 commit comments

Comments
 (0)