A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/branches/tk_and_idle_maintenance/Demo/scripts/newslist.py below:

Newsgroups available' + detail +'

.html containing links # to those groups beginning with . def createpage(root, tree, p): filename = os.path.join(pagedir,root+'.html') if root == rootpage: detail = '' else: detail = ' under ' + root f = open(filename,'w') # f.write('Content-Type: text/html\n') f.write(' Newsgroups available' + detail + '\n') f.write(' Newsgroups available' + detail +'\n') f.write(' Back to top level

\n') printtree(f,tree,0,p) f.write('This page automatically created by \'newslist\' v. '+rcsrev+'.') f.write(time.ctime(time.time()) + '

') f.close() # Printtree prints the groups as a bulleted list. Groups with # more than subgroups will be put on a separate page. # Other sets of subgroups are just indented. def printtree(f, tree, indent, p): global desc l = len(tree) if l > sublistsize and indent>0: # Create a new page and a link to it f.write('

  • ') f.write(p[1:]+'.*') f.write(''+pagelinkicon+'\n') createpage(p[1:], tree, p) return kl = tree.keys() if l > 1: kl.sort() if indent > 0: # Create a sub-list f.write('
  • '+p[1:]+'\n

  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4