Commit 99473158 by rfkelly0

S3FS: include class name in repr(), for benefit of subclasses

parent cfbbe834
...@@ -156,7 +156,8 @@ class S3FS(FS): ...@@ -156,7 +156,8 @@ class S3FS(FS):
self._tlocal = thread_local() self._tlocal = thread_local()
def __str__(self): def __str__(self):
return '<S3FS: %s:%s>' % (self._bucket_name,self._prefix) args = (self.__class__.__name__,self._bucket_name,self._prefix)
return '<%s: %s:%s>' % args
__repr__ = __str__ __repr__ = __str__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment