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 |