From 5350bbbfb1392725d6458e61d52c70b491320f5d Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian@onerussian.com>
Date: Thu, 8 Oct 2015 10:33:47 -0700
Subject: No strings exceptions is allowed in Python2.6

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

Upsteam PR: https://bitbucket.org/yarikoptic/pyglet/pull-requests/1/raise-windowexception-instead-of-a-pure/diff

Vendor: Debian

Patch-Name: up_no_string_exceptions
---
 pyglet/window/carbon/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/pyglet/window/carbon/__init__.py
+++ b/pyglet/window/carbon/__init__.py
@@ -332,7 +332,7 @@ class CarbonWindow(BaseWindow):
         # 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:
