Show
Ignore:
Timestamp:
07/27/07 22:32:28 (6 years ago)
Author:
boltrix
Message:

More test on I18N

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/umitGUI/NmapOutputViewer.py

    r1146 r1147  
    2727 
    2828from threading import Thread 
    29 from codecs import open 
    3029 
    3130from higwidgets.higbuttons import HIGButton 
    3231 
    33 from umitCore.I18N import _, ENC 
     32from umitCore.I18N import _, read_file 
    3433from umitCore.Logging import log 
    3534from umitCore.UmitConf import NmapOutputHighlight 
     
    356355    def refresh_output(self, widget=None): 
    357356        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) 
    365360     
    366361if __name__ == '__main__':