def _coerceToFilesystemEncoding(path, newpath, encoding=None):
 if (type(path) == bytes):
  return _asFilesystemBytes(newpath, encoding=encoding)
 else:
  return _asFilesystemText(newpath, encoding=encoding)

def _coerceToFilesystemEncoding ( path , newpath , encoding = None ) : if ( type ( path ) == bytes ) : return _asFilesystemBytes ( newpath , encoding = encoding ) else : return _asFilesystemText ( newpath , encoding = encoding )
return a c{newpath} that is suitable for joining to c{path} .