[ARVADOS] updated: 97bb07673de62fe9bdb5fe8ae0a9c6dbc8d8c2d8
git at public.curoverse.com
git at public.curoverse.com
Thu Nov 13 15:22:46 EST 2014
Summary of changes:
sdk/python/arvados/stream.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
via 97bb07673de62fe9bdb5fe8ae0a9c6dbc8d8c2d8 (commit)
from 34a73d5411d0e9a86ede40e6a3ebce54f4d9a94f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 97bb07673de62fe9bdb5fe8ae0a9c6dbc8d8c2d8
Author: Tom Clegg <tom at curoverse.com>
Date: Thu Nov 13 15:20:11 2014 -0500
4363: Make _NameAttribute a unicode instead of a str. Avoid encoding hack.
diff --git a/sdk/python/arvados/stream.py b/sdk/python/arvados/stream.py
index cd8153e..aab5b3e 100644
--- a/sdk/python/arvados/stream.py
+++ b/sdk/python/arvados/stream.py
@@ -103,17 +103,16 @@ def split(path):
return stream_name, file_name
class StreamFileReader(ArvadosFileBase):
- class _NameAttribute(str):
+ class _NameAttribute(unicode):
# The Python file API provides a plain .name attribute.
# Older SDK provided a name() method.
# This class provides both, for maximum compatibility.
def __call__(self):
- return self.decode('utf-8')
+ return self
def __init__(self, stream, segments, name):
- super(StreamFileReader, self).__init__(
- self._NameAttribute(name.encode('utf-8')), 'rb')
+ super(StreamFileReader, self).__init__(self._NameAttribute(name), 'rb')
self._stream = stream
self.segments = segments
self._filepos = 0L
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list