def _scandir_generic(path=unicode('.')):
 for name in listdir(path):
  (yield GenericDirEntry(path, name))

def _scandir_generic ( path = unicode ( '.' ) ) : for name in listdir ( path ) : ( yield GenericDirEntry ( path , name ) )
like os .