def buffer_name(segment_info):
		try:
			name = segment_info['buffer'].name
		except __HOLE__:
			return vim_bufname(segment_info['bufnr'])
		else:
			return name.encode(segment_info['encoding']) if name else None
dataset/ETHPy150Open powerline/powerline/powerline/bindings/vim/__init__.py/buffer_name