Tasks/TaskViewer.py

changeset 45
9a18f4dbb493
parent 13
1af94a91f439
child 53
c3eb7cc1ff8b
equal deleted inserted replaced
44:fe5cd20cb0eb 45:9a18f4dbb493
769 break 769 break
770 770
771 fn = os.path.join(self.project.ppath, file) 771 fn = os.path.join(self.project.ppath, file)
772 # read the file and split it into textlines 772 # read the file and split it into textlines
773 try: 773 try:
774 f = open(fn, 'r') 774 text, encoding = Utilities.readEncodedFile(fn)
775 text = f.read()
776 lines = text.splitlines() 775 lines = text.splitlines()
777 f.close() 776 except (UnicodeError, IOError):
778 except IOError:
779 count += 1 777 count += 1
780 self.progress.setValue(count) 778 self.progress.setValue(count)
781 continue 779 continue
782 780
783 # now search tasks and record them 781 # now search tasks and record them

eric ide

mercurial