Changeset 1147 for trunk/umitGUI/NmapOutputViewer.py
- Timestamp:
- 07/27/07 22:32:28 (6 years ago)
- Files:
-
- 1 modified
-
trunk/umitGUI/NmapOutputViewer.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/umitGUI/NmapOutputViewer.py
r1146 r1147 27 27 28 28 from threading import Thread 29 from codecs import open30 29 31 30 from higwidgets.higbuttons import HIGButton 32 31 33 from umitCore.I18N import _, ENC32 from umitCore.I18N import _, read_file 34 33 from umitCore.Logging import log 35 34 from umitCore.UmitConf import NmapOutputHighlight … … 356 355 def refresh_output(self, widget=None): 357 356 log.debug("Refresh nmap output") 358 nmap_of = open(self.nmap_output_file, "r", ENC, "ignore") 359 content = nmap_of.read() 360 361 self.text_buffer.set_text(content) 362 363 # Closing file to avoid file descriptor problems 364 nmap_of.close() 357 nmap_of = read_file(self.nmap_output_file) 358 359 self.text_buffer.set_text(nmap_of) 365 360 366 361 if __name__ == '__main__':
