Changeset 4276

Show
Ignore:
Timestamp:
03/05/09 01:37:45 (4 years ago)
Author:
gpolo
Message:

Removed trailing whitespaces, reformated to < 80 columns.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/bin/umit

    r4240 r4276  
    114114        crash_text = cgitb.text((etype, emsg, etb)) 
    115115        crash_text_dialog = "\n%s\n%s\n" % (versions, crash_text) 
    116         crash_text= "{{{\n%s\n%s\n}}}" % (versions, crash_text) 
    117          
     116        crash_text = "{{{\n%s\n%s\n}}}" % (versions, crash_text) 
     117 
    118118        #Dialog info 
    119119        extrainfo_dialog = "%-17s %s\n%-17s %s\n%-17s %s\n%-17s %s\n" % ( 
    120             "sys.platform", sys.platform, "os.name", os.name,  
    121             "Gtk version", '.'.join(map(str, gtk.gtk_version)),  
     120            "sys.platform", sys.platform, "os.name", os.name, 
     121            "Gtk version", '.'.join(map(str, gtk.gtk_version)), 
    122122            "Umit version", VERSION) 
    123         crashmsg_dialog = "Crash Report\n%s\n%s\nDescription\n%s\n%s" % \ 
    124                         ('=' * 10, extrainfo_dialog, '-' * 20,\ 
    125                          crash_text_dialog) 
    126          
    127         extrainfo = "%-17s %s\n[[BR]]%-17s %s\n[[BR]]%-17s %s\n[[BR]]%-17s %s[[BR]]\n" % ( 
    128             "sys.platform", sys.platform, "os.name", os.name,  
    129             "Gtk version", '.'.join(map(str, gtk.gtk_version)),  
    130             "Umit version", VERSION) 
    131         crashmsg = "Crash Report\n[[BR]]%s[[BR]]\n[[BR]]%s\nDescription\n%s\n%s" % ('=' * 10,  
    132             extrainfo, '-' * 20, crash_text) 
     123        crashmsg_dialog = "Crash Report\n%s\n%s\nDescription\n%s\n%s" % ( 
     124                '=' * 10, extrainfo_dialog, '-' * 20, crash_text_dialog) 
     125 
     126        extrainfo = ( 
     127                "%-17s %s\n[[BR]]%-17s %s\n[[BR]]%-17s %s\n" 
     128                "[[BR]]%-17s %s[[BR]]\n" % ( 
     129                    "sys.platform", sys.platform, "os.name", os.name, 
     130                    "Gtk version", '.'.join(map(str, gtk.gtk_version)), 
     131                    "Umit version", VERSION)) 
     132        crashmsg = ( 
     133                "Crash Report\n[[BR]]%s[[BR]]\n[[BR]]%s\n" 
     134                "Description\n%s\n%s" % ( 
     135                    '=' * 10, extrainfo, '-' * 20, crash_text)) 
    133136 
    134137        try: 
    135138            try: 
    136                 cwin = CrashReport("Umit Crash - '%s'" % emsg, crashmsg, 
    137                                   description_dialog=crashmsg_dialog) 
     139                cwin = CrashReport("Umit Crash - '%s'" % emsg, 
     140                        crashmsg, description_dialog=crashmsg_dialog) 
    138141                cwin.show_all() 
    139                 while True:  
    140                     # keeping running while bug report is not sent successfully, 
    141                     # or until the user closes the window. 
     142                while True: 
     143                    # keeping running while bug report is not sent 
     144                    # successfully, or until the user closes the window. 
    142145                    result = cwin.run() 
    143146                    if result in (gtk.RESPONSE_CANCEL, 
     
    153156                    message_format=_("Bug not reported"), 
    154157                    secondary_text=_("A critical error occourried during " 
    155                         "Umit execution, \nand it was not properly reported "  
    156                         "to our bug tracker. The crash description was saved to: " 
    157                         "%s, so you can still report it on our bug " 
     158                        "Umit execution, \nand it was not properly reported " 
     159                        "to our bug tracker. The crash description was saved " 
     160                        "to: %s, so you can still report it on our bug " 
    158161                        "tracker.") % tempname) 
    159162                os.close(tempfd) 
     
    179182    sys.stderr = _stderr 
    180183 
    181      
     184 
    182185    sys.excepthook = UmitExceptionHook() 
    183186