eric6/DataViews/PyProfileDialog.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7923
91e843545d9a
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
240 self.close() 240 self.close()
241 return 241 return
242 try: 242 try:
243 with open(fname, 'rb') as f: 243 with open(fname, 'rb') as f:
244 self.stats = pickle.load(f) # secok 244 self.stats = pickle.load(f) # secok
245 except (EnvironmentError, pickle.PickleError, EOFError): 245 except (OSError, pickle.PickleError, EOFError):
246 E5MessageBox.critical( 246 E5MessageBox.critical(
247 self, 247 self,
248 self.tr("Loading Profiling Data"), 248 self.tr("Loading Profiling Data"),
249 self.tr("""<p>The profiling data could not be""" 249 self.tr("""<p>The profiling data could not be"""
250 """ read from file <b>{0}</b>.</p>""") 250 """ read from file <b>{0}</b>.</p>""")

eric ide

mercurial