From 529f620b3ba4a74b714db628c3e9a7aac9618e48 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 14 Feb 2011 13:36:39 +0100 Subject: [PATCH] do not ignore .pyc in generator --- python/helpers/generator3.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/helpers/generator3.py b/python/helpers/generator3.py index c1fa09832227..52b58bf7dffb 100644 --- a/python/helpers/generator3.py +++ b/python/helpers/generator3.py @@ -1922,8 +1922,9 @@ class ModuleRedeclarator(object): def hasRegularPythonExt(name): - "Does name end with .py or .pyc?" - return name.endswith(".py") or name.endswith(".pyc") + "Does name end with .py?" + return name.endswith(".py") # Note that the standard library on MacOS X 10.6 is shipped only as .pyc files, so we need to + # have them processed by the generator in order to have any code insight for the standard library. def buildOutputName(subdir, name): global action