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

Side by Side Diff: third_party/twisted_8_1/twisted/lore/htmlbook.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2 # See LICENSE for details.
3
4
5 def getNumber(filename):
6 return None
7
8 def getReference(filename):
9 return None
10
11 class Book:
12
13 def __init__(self, filename):
14 self.chapters = []
15 self.indexFilename = None
16
17 global Chapter
18 Chapter = self.Chapter
19 global getNumber
20 getNumber = self.getNumber
21 global getReference
22 getReference = self.getNumber
23 global Index
24 Index = self.Index
25
26 if filename:
27 execfile(filename)
28
29 def getFiles(self):
30 return [c[0] for c in self.chapters]
31
32 def getNumber(self, filename):
33 for c in self.chapters:
34 if c[0] == filename:
35 return c[1]
36 return None
37
38 def getIndexFilename(self):
39 return self.indexFilename
40
41 def Chapter(self, filename, number):
42 self.chapters.append((filename, number))
43
44 def Index(self, filename):
45 self.indexFilename = filename
46
47 #_book = Book(None)
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/lore/docbook.py ('k') | third_party/twisted_8_1/twisted/lore/indexer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698