diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-19 23:23:20 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-19 23:23:20 +0900 |
| commit | 869ac1efe2ed37c79c58f40931a28f399358bf93 (patch) | |
| tree | fbae8319928c9ff15f93c6e5f87ebd8663ff14cf /sphinx/pycode/__init__.py | |
| parent | 089d151ec58a12dc0e3c11d99ac5e77e1da3122d (diff) | |
| download | sphinx-git-869ac1efe2ed37c79c58f40931a28f399358bf93.tar.gz | |
Fix #4754: sphinx/pycode/__init__.py raises AttributeError
Diffstat (limited to 'sphinx/pycode/__init__.py')
| -rw-r--r-- | sphinx/pycode/__init__.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sphinx/pycode/__init__.py b/sphinx/pycode/__init__.py index de951a19f..fca28817d 100644 --- a/sphinx/pycode/__init__.py +++ b/sphinx/pycode/__init__.py @@ -117,23 +117,3 @@ class ModuleAnalyzer(object): self.parse() return self.tags - - -if __name__ == '__main__': - import time - import pprint - x0 = time.time() - # ma = ModuleAnalyzer.for_file(__file__.rstrip('c'), 'sphinx.builders.html') - ma = ModuleAnalyzer.for_file('sphinx/environment.py', - 'sphinx.environment') - ma.tokenize() - x1 = time.time() - ma.parse() - x2 = time.time() - # for (ns, name), doc in iteritems(ma.find_attr_docs()): - # print '>>', ns, name - # print '\n'.join(doc) - pprint.pprint(ma.find_tags()) - x3 = time.time() - # print nodes.nice_repr(ma.parsetree, number2name) - print("tokenizing %.4f, parsing %.4f, finding %.4f" % (x1 - x0, x2 - x1, x3 - x2)) |
