fix problems with certain builtins (names were just stupid, like '_sqlite3.cpython-32mu' / python 2.5 may have an error more #84

This commit is contained in:
David Halter committed 2012-12-19 23:12:15 +01:00
1 parent 2ee09980eb
commit ce0aadc9a5
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -200,6 +200,9 @@ class Parser(CachedModule):
try:
name = self.name
# sometimes there are stupid endings like `_sqlite3.cpython-32mu`
name = re.sub(r'\..*', '', name)
if name == '__builtin__' and not is_py3k:
name = 'builtins'
path = os.path.dirname(os.path.abspath(__file__))