From 3e420313a2874730f9fe8ec8c7013fcc4231c73f Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 3 Mar 2013 13:08:34 +0100 Subject: [PATCH] Only require things that start with a capital letter --- bin/generate-exports.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/generate-exports.py b/bin/generate-exports.py index 49360b47d7..28d7ad6e3d 100755 --- a/bin/generate-exports.py +++ b/bin/generate-exports.py @@ -203,7 +203,11 @@ def main(argv): symbol = Symbol(name, True, export_as) objects[name] = symbol if not export_as: - requires.add(name) + components = m.group('name').split('.') + if re.match(r'[A-Z]', components[-1]): + requires.add(name) + else: + requires.add('.'.join(components[:-1])) continue raise RuntimeError(line)