def remove_files(basedir):
 if (sys.version_info >= (3,)):
  removelist = py2_only_files
  msg = 'Python 2-only file'
 else:
  removelist = py3_only_files
  msg = 'Python 3-only file'
 for relpath in removelist:
  path = os.path.join(basedir, relpath)
  print ('Removing %s %r' % (msg, relpath))
  os.remove(path)

def remove_files ( basedir ) : if ( sys . version_info >= ( 3 , ) ) : removelist = py2_only_files msg = 'Python 2-only file' else : removelist = py3_only_files msg = 'Python 3-only file' for relpath in removelist : path = os . path . join ( basedir , relpath ) print ( 'Removing %s %r' % ( msg , relpath ) ) os . remove ( path )
remove unwanted files from the current source tree .