From: Yaroslav Halchenko <debian@onerussian.com>
Subject: No strings exceptions is allowed in Python2.6

Types of exceptions were deduced and might be changed by upstream
whenever patch gets adopted.

Vendor: Debian

Index: pyglet-1.1.4+hg20110428/pyglet/window/carbon/__init__.py
===================================================================
--- pyglet-1.1.4+hg20110428.orig/pyglet/window/carbon/__init__.py	2011-04-30 21:05:24.000000000 +0400
+++ pyglet-1.1.4+hg20110428/pyglet/window/carbon/__init__.py	2011-04-30 21:18:55.449626001 +0400
@@ -330,7 +330,7 @@
         # Can occur when mixing with other toolkits, e.g. Tk.
         # Fixes issue 180.
         if result not in (eventLoopTimedOutErr, eventLoopQuitErr):
-            raise 'Error %d' % result
+            raise WindowException('Error %d' % result)
 
     def dispatch_pending_events(self):
         while self._event_queue:
