~gary-lasker/software-center/import-latest-sreclient

« back to all changes in this revision

Viewing changes to utils/submit_review_gtk3.py

  • Committer: Gary Lasker
  • Date: 2012-02-10 16:22:10 UTC
  • mfrom: (2728.4.1 trunk)
  • Revision ID: gary.lasker@canonical.com-20120210162210-3l95uzow0hqypusg
merged lp:~mvo/software-center/submit-review-hang-fix, thanks mvo

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#import httplib2
46
46
#httplib2.debuglevel = 1
47
47
 
 
48
# the glib docs tell us that this is no longer needed, but if its omited
 
49
# the system will hang on submit *sigh*
 
50
from gi.repository import GLib
 
51
GLib.threads_init()
48
52
 
49
53
if __name__ == "__main__":
50
54
    try:
71
75
                                                           backupCount=5)
72
76
    logfile_handler.setLevel(logging.INFO)
73
77
    logging.getLogger().addHandler(logfile_handler)
 
78
    logging.getLogger().addHandler(logging.StreamHandler())
74
79
 
75
80
    # run review personality
76
81
    if "submit_review" in sys.argv[0]: