diff --git a/bin/generate-exports.py b/bin/generate-exports.py index e2f0eca521..2ae2cd8475 100755 --- a/bin/generate-exports.py +++ b/bin/generate-exports.py @@ -278,7 +278,7 @@ def main(argv): components = m.group('name').split('.') if re.match(r'[A-Z]', components[-1]): requires.add(name) - elif len(components) > 2: + elif len(components) > 1: requires.add('.'.join(components[:-1])) continue raise RuntimeError(line)