[pyglet] 3 new revisions pushed by useboxnet on 2014-04-17 16:52 GMT

1 view
Skip to first unread message

pyg...@googlecode.com

unread,
Apr 17, 2014, 12:53:07 PM4/17/14
to pyglet-...@googlegroups.com
3 new revisions:

Revision: 2ccfdf20e437
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Thu Apr 17 16:35:44 2014 UTC
Log: Add information about the import problem
http://code.google.com/p/pyglet/source/detail?r=2ccfdf20e437

Revision: 4696faf9b844
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Thu Apr 17 16:38:01 2014 UTC
Log: Python 3 compatibility for Pulseaudio...
http://code.google.com/p/pyglet/source/detail?r=4696faf9b844

Revision: f57a7baa8aeb
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Thu Apr 17 16:52:32 2014 UTC
Log: Python 3 compatibility: explicitly close files...
http://code.google.com/p/pyglet/source/detail?r=f57a7baa8aeb

==============================================================================
Revision: 2ccfdf20e437
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Thu Apr 17 16:35:44 2014 UTC
Log: Add information about the import problem
http://code.google.com/p/pyglet/source/detail?r=2ccfdf20e437

Modified:
/pyglet/media/__init__.py

=======================================
--- /pyglet/media/__init__.py Sat Sep 21 09:35:26 2013 UTC
+++ /pyglet/media/__init__.py Thu Apr 17 16:35:44 2014 UTC
@@ -1439,9 +1439,9 @@
elif driver_name == 'silent':
_audio_driver = get_silent_audio_driver()
break
- except:
+ except Exception as exp:
if _debug:
- print 'Error importing driver %s' % driver_name
+ print 'Error importing driver %s:\n%s' % (driver_name,
str(exp))
return _audio_driver

def get_silent_audio_driver():

==============================================================================
Revision: 4696faf9b844
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Thu Apr 17 16:38:01 2014 UTC
Log: Python 3 compatibility for Pulseaudio

Thanks to Eric Larson for the patch!

Fixes issue #716.
http://code.google.com/p/pyglet/source/detail?r=4696faf9b844

Modified:
/pyglet/media/drivers/pulse/__init__.py

=======================================
--- /pyglet/media/drivers/pulse/__init__.py Wed Jul 17 17:16:47 2013 UTC
+++ /pyglet/media/drivers/pulse/__init__.py Thu Apr 17 16:38:01 2014 UTC
@@ -57,7 +57,7 @@

# Create context
app_name = self.get_app_name()
- self._context = pa.pa_context_new(self.mainloop, app_name)
+ self._context = pa.pa_context_new(self.mainloop,
app_name.encode('ASCII'))

# Context state callback
self._state_cb_func = pa.pa_context_notify_cb_t(self._state_cb)
@@ -208,7 +208,7 @@
context.lock()
# Create stream
self.stream = pa.pa_stream_new(context._context,
- str(id(self)),
+ str(id(self)).encode('ASCII'),
sample_spec,
channel_map)
check_not_null(self.stream)

==============================================================================
Revision: f57a7baa8aeb
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Thu Apr 17 16:52:32 2014 UTC
Log: Python 3 compatibility: explicitly close files

Thanks to Eric Larson for the patch!
http://code.google.com/p/pyglet/source/detail?r=f57a7baa8aeb

Modified:
/pyglet/lib.py

=======================================
--- /pyglet/lib.py Sat Dec 7 19:02:32 2013 UTC
+++ /pyglet/lib.py Thu Apr 17 16:52:32 2014 UTC
@@ -307,7 +307,8 @@
pass

try:
- directories.extend([dir.strip() for dir in
open('/etc/ld.so.conf')])
+ with open('/etc/ld.so.conf') as fid:
+ directories.extend([dir.strip() for dir in fid])
except IOError:
pass

Reply all
Reply to author
Forward
0 new messages