Tasks/TaskViewer.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
18 from PyQt4.QtCore import * 18 from PyQt4.QtCore import *
19 from PyQt4.QtGui import * 19 from PyQt4.QtGui import *
20 20
21 from E4Gui.E4Application import e4App 21 from E4Gui.E4Application import e4App
22 22
23 from TaskPropertiesDialog import TaskPropertiesDialog 23 from .TaskPropertiesDialog import TaskPropertiesDialog
24 from TaskFilterConfigDialog import TaskFilterConfigDialog 24 from .TaskFilterConfigDialog import TaskFilterConfigDialog
25 25
26 import UI.PixmapCache 26 import UI.PixmapCache
27 27
28 import Preferences 28 import Preferences
29 import Utilities 29 import Utilities
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, 'rb') 774 f = open(fn, 'r')
775 text, encoding = Utilities.decode(f.read()) 775 text = f.read()
776 lines = text.splitlines() 776 lines = text.splitlines()
777 f.close() 777 f.close()
778 except IOError: 778 except IOError:
779 count += 1 779 count += 1
780 self.progress.setValue(count) 780 self.progress.setValue(count)

eric ide

mercurial