eric6/Tasks/TaskViewer.py

changeset 7836
2f0d208b8137
parent 7781
607a6098cb44
child 7900
72b88fb20261
child 7924
8a96736d465e
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
734 fn = os.path.join(ppath, file) 734 fn = os.path.join(ppath, file)
735 # read the file and split it into textlines 735 # read the file and split it into textlines
736 try: 736 try:
737 text, encoding = Utilities.readEncodedFile(fn) 737 text, encoding = Utilities.readEncodedFile(fn)
738 lines = text.splitlines() 738 lines = text.splitlines()
739 except (UnicodeError, IOError): 739 except (UnicodeError, OSError):
740 count += 1 740 count += 1
741 progress.setValue(count) 741 progress.setValue(count)
742 continue 742 continue
743 743
744 # now search tasks and record them 744 # now search tasks and record them
850 850
851 # read the file and split it into textlines 851 # read the file and split it into textlines
852 try: 852 try:
853 text, encoding = Utilities.readEncodedFile(fn) 853 text, encoding = Utilities.readEncodedFile(fn)
854 lines = text.splitlines() 854 lines = text.splitlines()
855 except (UnicodeError, IOError): 855 except (UnicodeError, OSError):
856 continue 856 continue
857 857
858 # now search tasks and record them 858 # now search tasks and record them
859 lineIndex = 0 859 lineIndex = 0
860 for line in lines: 860 for line in lines:

eric ide

mercurial