~ubuntu-branches/ubuntu/karmic/quodlibet/karmic

« back to all changes in this revision

Viewing changes to quodlibet/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-07-27 14:02:54 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20090727140254-zxutnf2kkhtpubnp
Tags: 2.1-2ubuntu1
* Resync from debian unstable (LP: #401965)
* debian/patches:
  - fix-context-crashes.patch: Dropped. Included Upstream.
  - 60-popen2-deprecated.patch: Dropped. Included Upstream.
* debian/quodlibet-ext.install: Changed 'site-packages' to '*-packages'.
* debian/rules: Changed 'site-packages' to '*-packages'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
            string = string.encode(ENCODING, "replace")
69
69
        else:
70
70
            string = string.decode(frm).encode(ENCODING, "replace")
71
 
        print >>output, string
 
71
        try:
 
72
            print >>output, string
 
73
        except IOError, e:
 
74
            pass
72
75
 
73
76
def print_d(string, context=""):
74
77
    """Print debugging information."""
192
195
 
193
196
    SIGNALS = [signal.SIGINT, signal.SIGTERM, signal.SIGHUP]
194
197
    for sig in SIGNALS:
195
 
        signal.signal(sig, gtk.main_quit)
 
198
        signal.signal(sig, window.destroy)
196
199
 
197
200
    window.connect('destroy', gtk.main_quit)
198
201
    window.show()