Skip to content

Commit

Permalink
python2->python3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moyix committed Aug 12, 2024
1 parent 65cb91b commit 5f2cf80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/fninstr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import yaml
import re
import cPickle as pickle
import pickle
import argparse

debug = True
Expand Down Expand Up @@ -126,14 +126,14 @@ def merge(v, vors):
fpa = FnPtrAssign(x['fnPtrAssign'])
addtohl(fpas, fpa.name, fpa)

f = open("getfns.pickle", "w")
f = open("getfns.pickle", "wb")
pickle.dump(fundefs, f)
pickle.dump(prots, f)
pickle.dump(calls, f)
pickle.dump(fpas, f)
f.close()
else:
f = open("getfns.pickle", "r")
f = open("getfns.pickle", "rb")
fundefs = pickle.load(f)
prots = pickle.load(f)
calls = pickle.load(f)
Expand Down

0 comments on commit 5f2cf80

Please sign in to comment.