Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: third_party/twisted_8_1/twisted/lore/indexer.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/twisted_8_1/twisted/lore/htmlbook.py ('k') | third_party/twisted_8_1/twisted/lore/latex.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/twisted_8_1/twisted/lore/indexer.py
diff --git a/third_party/twisted_8_1/twisted/lore/indexer.py b/third_party/twisted_8_1/twisted/lore/indexer.py
deleted file mode 100644
index 5feb95d5795569c7124c68c4edd7a6f95afc72e3..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/lore/indexer.py
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-
-def setIndexFilename(filename='index.xhtml'):
- global indexFilename
- indexFilename = filename
-
-def getIndexFilename():
- global indexFilename
- return indexFilename
-
-def addEntry(filename, anchor, text, reference):
- global entries
- if not entries.has_key(text):
- entries[text] = []
- entries[text].append((filename, anchor, reference))
-
-def clearEntries():
- global entries
- entries = {}
-
-def generateIndex():
- global entries
- global indexFilename
-
- if not indexFilename:
- return
-
- f = open(indexFilename, 'w')
- sortedEntries = [(e.lower(), e) for e in entries]
- sortedEntries.sort()
- sortedEntries = [e[1] for e in sortedEntries]
- for text in sortedEntries:
- refs = []
- f.write(text.replace('!', ', ') + ': ')
- for (file, anchor, reference) in entries[text]:
- refs.append('<a href="%s#%s">%s</a>' % (file, anchor, reference))
- if text == 'infinite recursion':
- refs.append('<em>See Also:</em> recursion, infinite\n')
- if text == 'recursion!infinite':
- refs.append('<em>See Also:</em> infinite recursion\n')
- f.write('%s<br />\n' % ", ".join(refs))
- f.close()
-
-def reset():
- clearEntries()
- setIndexFilename()
-
-reset()
« no previous file with comments | « third_party/twisted_8_1/twisted/lore/htmlbook.py ('k') | third_party/twisted_8_1/twisted/lore/latex.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698