@_replaceIf(_PY3, getattr(os, 'fsdecode', None))
def _fsdecode(x):
 if isinstance(x, unicode):
  return x
 return x.decode(sys.getfilesystemencoding())

@ _replaceIf ( _PY3 , getattr ( os , 'fsdecode' , None ) ) def _fsdecode ( x ) : if isinstance ( x , unicode ) : return x return x . decode ( sys . getfilesystemencoding ( ) )
decode a string to a l{unicode} representation .