def _asFilesystemBytes(path, encoding=None):
 if (type(path) == bytes):
  return path
 else:
  if (encoding is None):
   encoding = sys.getfilesystemencoding()
  return path.encode(encoding)

def _asFilesystemBytes ( path , encoding = None ) : if ( type ( path ) == bytes ) : return path else : if ( encoding is None ) : encoding = sys . getfilesystemencoding ( ) return path . encode ( encoding )
return c{path} as a string of l{bytes} suitable for use on this systems filesystem .