Commits

Anonymous committed 7ea4658

Open files in binary mode (Jack)

  • Participants
  • Parent commits 1041317
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/pstats.py

 	def load_stats(self, arg):
 		if not arg:  self.stats = {}
 		elif type(arg) == type(""):
-			f = open(arg, 'r')
+			f = open(arg, 'rb')
 			self.stats = marshal.load(f)
 			f.close()
 			try: