pep8 cleanup and fix for keymap test operator from my own recent fix.

This commit is contained in:
Campbell Barton
2011-09-26 15:39:15 +00:00
parent dc19877a09
commit 8a423f59ea
8 changed files with 37 additions and 24 deletions

View File

@@ -37,12 +37,14 @@ class ConsoleExec(Operator):
if execute:
return execute(context)
else:
print("Error: bpy.ops.console.execute_" + sc.language + " - not found")
print("Error: bpy.ops.console.execute_%s - not found" %
sc.language)
return {'FINISHED'}
class ConsoleAutocomplete(Operator):
'''Evaluate the namespace up until the cursor and give a list of options or complete the name if there is only one'''
"""Evaluate the namespace up until the cursor and give a list of """ \
"""options or complete the name if there is only one"""
bl_idname = "console.autocomplete"
bl_label = "Console Autocomplete"
@@ -54,7 +56,8 @@ class ConsoleAutocomplete(Operator):
if autocomplete:
return autocomplete(context)
else:
print("Error: bpy.ops.console.autocomplete_" + sc.language + " - not found")
print("Error: bpy.ops.console.autocomplete_%s - not found" %
sc.language)
return {'FINISHED'}
@@ -76,7 +79,8 @@ class ConsoleBanner(Operator):
if banner:
return banner(context)
else:
print("Error: bpy.ops.console.banner_" + sc.language + " - not found")
print("Error: bpy.ops.console.banner_%s - not found" %
sc.language)
return {'FINISHED'}
@@ -103,4 +107,3 @@ class ConsoleLanguage(Operator):
remove_duplicates=True)
return {'FINISHED'}