def getChunkSize(self, chunk):
        if isinstance(chunk, six.BytesIO):
            return
        elif hasattr(chunk, "fileno"):
            return os.fstat(chunk.fileno()).st_size
        elif isinstance(chunk, six.text_type):
            return len(chunk.encode('utf8'))
        else:
            return len(chunk)
Trait initializer.
dataset/ETHPy150Open girder/girder/girder/utility/abstract_assetstore_adapter.py/AbstractAssetstoreAdapter.getChunkSize--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/workbench/perspective.py/Perspective._id_default