Fix the source positions referenced by the "viewcode" extension.

This commit is contained in:
Georg Brandl committed 2011-10-07 19:17:01 +02:00
1 parent 975f9c7eaa
commit 5bff67432e
2 files changed
+3

No files matched your search

+2
View File
@@ -3,6 +3,8 @@ Release 1.0.9 (in development)
* #778: Fix "hide search matches" link on pages linked by search.
* Fix the source positions referenced by the "viewcode" extension.
Release 1.0.8 (Sep 23, 2011)
============================
+1
View File
@@ -193,6 +193,7 @@ class ModuleAnalyzer(object):
# cache the source code as well
pos = self.source.tell()
self.encoding = detect_encoding(self.source.readline)
self.source.seek(pos)
self.code = self.source.read()
self.source.seek(pos)