Index: third_party/twisted_8_1/twisted/lore/htmlbook.py |
diff --git a/third_party/twisted_8_1/twisted/lore/htmlbook.py b/third_party/twisted_8_1/twisted/lore/htmlbook.py |
deleted file mode 100644 |
index a26abb3e805edf2feb8ba03dfa0b3d94faa045c9..0000000000000000000000000000000000000000 |
--- a/third_party/twisted_8_1/twisted/lore/htmlbook.py |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories. |
-# See LICENSE for details. |
- |
- |
-def getNumber(filename): |
- return None |
- |
-def getReference(filename): |
- return None |
- |
-class Book: |
- |
- def __init__(self, filename): |
- self.chapters = [] |
- self.indexFilename = None |
- |
- global Chapter |
- Chapter = self.Chapter |
- global getNumber |
- getNumber = self.getNumber |
- global getReference |
- getReference = self.getNumber |
- global Index |
- Index = self.Index |
- |
- if filename: |
- execfile(filename) |
- |
- def getFiles(self): |
- return [c[0] for c in self.chapters] |
- |
- def getNumber(self, filename): |
- for c in self.chapters: |
- if c[0] == filename: |
- return c[1] |
- return None |
- |
- def getIndexFilename(self): |
- return self.indexFilename |
- |
- def Chapter(self, filename, number): |
- self.chapters.append((filename, number)) |
- |
- def Index(self, filename): |
- self.indexFilename = filename |
- |
-#_book = Book(None) |