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

Unified Diff: third_party/twisted_8_1/twisted/lore/default.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/_version.py ('k') | third_party/twisted_8_1/twisted/lore/docbook.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/default.py
diff --git a/third_party/twisted_8_1/twisted/lore/default.py b/third_party/twisted_8_1/twisted/lore/default.py
deleted file mode 100644
index 0f46fc42d1692c8dca41913b2fd56d0ab07306cd..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/lore/default.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-#
-from __future__ import nested_scopes
-
-from twisted.lore import tree, latex, lint, process
-from twisted.web import sux, microdom
-
-htmlDefault = {'template': 'template.tpl', 'baseurl': '%s', 'ext': '.html'}
-
-class ProcessingFunctionFactory:
-
- def getDoFile(self):
- return tree.doFile
-
- def generate_html(self, options, filenameGenerator=tree.getOutputFileName):
- n = htmlDefault.copy()
- n.update(options)
- options = n
- try:
- fp = open(options['template'])
- templ = microdom.parse(fp)
- except IOError, e:
- raise process.NoProcessorError(e.filename+": "+e.strerror)
- except sux.ParseError, e:
- raise process.NoProcessorError(str(e))
- df = lambda file, linkrel: self.getDoFile()(file, linkrel, options['ext'],
- options['baseurl'], templ, options, filenameGenerator)
- return df
-
- latexSpitters = {None: latex.LatexSpitter,
- 'section': latex.SectionLatexSpitter,
- 'chapter': latex.ChapterLatexSpitter,
- 'book': latex.BookLatexSpitter,
- }
-
- def generate_latex(self, options, filenameGenerator=None):
- spitter = self.latexSpitters[None]
- for (key, value) in self.latexSpitters.items():
- if key and options.get(key):
- spitter = value
- df = lambda file, linkrel: latex.convertFile(file, spitter)
- return df
-
- def getLintChecker(self):
- return lint.getDefaultChecker()
-
- def generate_lint(self, options, filenameGenerator=None):
- checker = self.getLintChecker()
- return lambda file, linkrel: lint.doFile(file, checker)
-
-factory = ProcessingFunctionFactory()
« no previous file with comments | « third_party/twisted_8_1/twisted/lore/_version.py ('k') | third_party/twisted_8_1/twisted/lore/docbook.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698