Commits

Jason R. Coombs committed 93a7647

Use the correct mode that doesn't cause characters to be inserted

  • Participants
  • Parent commits 66e82c4
  • Tags 1.3

Comments (0)

Files changed (1)

File jaraco/financial/msmoney.py

 		print("Backup already exists", file=sys.stderr)
 		raise SystemExit(1)
 	dll.copyfile(backup)
-	# open the file for read/write
-	with dll.open('a+b') as file:
+	# open the file for read and update (binary)
+	with dll.open('r+b') as file:
 		file.seek(0x3FACE8)
 		data = file.read(0xF6-0xE8+1)
 		assert ord(data[0xE8-0xE8]) == 0x85