don't print a 'Distribution' line in Windows error reports

This commit is contained in:
Paul Franklin 2017-06-29 11:25:43 -07:00
parent 4bbd5d5ee5
commit 8611494069

View File

@ -169,10 +169,10 @@ class ErrorReportAssistant(ManagedWindow, Gtk.Assistant):
""" """
if hasattr(os, "uname"): if hasattr(os, "uname"):
operatingsystem = os.uname()[0] operatingsystem = os.uname()[0]
distribution = os.uname()[2] distribution = "Distribution: %s\n" % os.uname()[2]
else: else: # probably Windows
operatingsystem = sys.platform operatingsystem = sys.platform
distribution = " " distribution = "" # print nothing if there's nothing to print
sqlite = '' sqlite = ''
if __debug__: if __debug__:
@ -185,7 +185,7 @@ class ErrorReportAssistant(ManagedWindow, Gtk.Assistant):
"%s"\ "%s"\
"LANG: %s\n"\ "LANG: %s\n"\
"OS: %s\n"\ "OS: %s\n"\
"Distribution: %s\n\n"\ "%s\n"\
"GTK version : %s\n"\ "GTK version : %s\n"\
"gobject version: %s\n"\ "gobject version: %s\n"\
"cairo version : %s"\ "cairo version : %s"\