def get_xattr(path, key, **kwargs):
 namespaced_key = _make_namespaced_xattr_key(key)
 try:
  return xattr.getxattr(path, namespaced_key)
 except IOError:
  if ('default' in kwargs):
   return kwargs['default']
  else:
   raise

def get_xattr ( path , key , ** kwargs ) : namespaced_key = _make_namespaced_xattr_key ( key ) try : return xattr . getxattr ( path , namespaced_key ) except IOError : if ( 'default' in kwargs ) : return kwargs [ 'default' ] else : raise
return the value for a particular xattr if the key doesnt not exist .