diff options
Diffstat (limited to 'release/scripts/startup/bl_operators/console.py')
-rw-r--r-- | release/scripts/startup/bl_operators/console.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_operators/console.py b/release/scripts/startup/bl_operators/console.py index de953630f00..109ca758ea8 100644 --- a/release/scripts/startup/bl_operators/console.py +++ b/release/scripts/startup/bl_operators/console.py @@ -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'} - |