From bf010c4a15840964ec92912e5582095d029bc314 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 7 Jun 2015 13:54:13 +1000 Subject: Cleanup: pep8 --- release/scripts/modules/rna_info.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'release/scripts/modules/rna_info.py') diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index ed80423023e..dae262e93d7 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -696,7 +696,7 @@ def BuildRNAInfo(): return InfoStructRNA.global_lookup, InfoFunctionRNA.global_lookup, InfoOperatorRNA.global_lookup, InfoPropertyRNA.global_lookup -if __name__ == "__main__": +def main(): import rna_info struct = rna_info.BuildRNAInfo()[0] data = [] @@ -724,3 +724,7 @@ if __name__ == "__main__": else: text = bpy.data.texts.new(name="api.py") text.from_string(data) + + +if __name__ == "__main__": + main() -- cgit v1.2.3