def _visit_pyfiles(list, dirname, names):
 if (not globals().has_key('_py_ext')):
  global _py_ext
  _py_ext = [triple[0] for triple in imp.get_suffixes() if (triple[2] == imp.PY_SOURCE)][0]
 if ('CVS' in names):
  names.remove('CVS')
 list.extend([os.path.join(dirname, file) for file in names if (os.path.splitext(file)[1] == _py_ext)])

def _visit_pyfiles ( list , dirname , names ) : if ( not globals ( ) . has_key ( '_py_ext' ) ) : global _py_ext _py_ext = [ triple [ 0 ] for triple in imp . get_suffixes ( ) if ( triple [ 2 ] == imp . PY_SOURCE ) ] [ 0 ] if ( 'CVS' in names ) : names . remove ( 'CVS' ) list . extend ( [ os . path . join ( dirname , file ) for file in names if ( os . path . splitext ( file ) [ 1 ] == _py_ext ) ] )
helper for getfilesforname() .