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.

Vendor: Debian

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

diff --git a/pyglet/window/carbon/__init__.py b/pyglet/window/carbon/__init__.py
index e5f6e14..644018a 100644
--- a/pyglet/window/carbon/__init__.py
+++ b/pyglet/window/carbon/__init__.py
@@ -655,7 +655,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:
@@ -1356,7 +1356,7 @@ def _create_cfstring(text):
 
 def _oscheck(result):
     if result != noErr:
-        raise 'Carbon error %d' % result
+        raise CarbonException('Carbon error %d' % result)
     return result
 
 def _aglcheck():
