Skip to content

Commit 5bd750f

Browse files
committed
fix SyntaxError on recent Python3
1 parent 2392b18 commit 5bd750f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dbf/_index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def __init__(self, dbf):
99
filename += '.pdx'
1010
if not os.path.exists(filename):
1111
self.index_file = open(filename, 'r+b')
12-
self.index_file.write('\xea\xaf\x37\xbf' # signature
13-
'\x00'*8 # two non-existant lists
14-
'\x00'*500) # and no indices
12+
self.index_file.write(b'\xea\xaf\x37\xbf' + # signature
13+
b'\x00'*8 + # two non-existant lists
14+
b'\x00'*500) # and no indices
1515
return
1616
index_file = self.index_file = open(filename, 'r+b')
1717
header = index_file.read(512)

0 commit comments

Comments
 (0)