From 7a7c13e2e7118304a7fe936d0b6c2f8e9a8cad53 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 26 May 2012 09:57:17 +0000 Subject: patch [#31578] Standard-conformal sets for .report() and operator return values from Sebastian Nell (codemanx) --- render_copy_settings/__init__.py | 4 ++-- render_copy_settings/operator.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'render_copy_settings') diff --git a/render_copy_settings/__init__.py b/render_copy_settings/__init__.py index 3a3e2738..f59432e0 100644 --- a/render_copy_settings/__init__.py +++ b/render_copy_settings/__init__.py @@ -61,7 +61,7 @@ class RenderCopySettingsScene(bpy.types.PropertyGroup): # A string of identifiers (colon delimited) which property’s controls # should be displayed in a template_list. template_list_controls = StringProperty(default="allowed", - options={"HIDDEN"}) + options={'HIDDEN'}) class RenderCopySettingsSetting(bpy.types.PropertyGroup): @@ -71,7 +71,7 @@ class RenderCopySettingsSetting(bpy.types.PropertyGroup): # A string of identifiers (colon delimited) which property’s controls # should be displayed in a template_list. template_list_controls = StringProperty(default="copy", - options={"HIDDEN"}) + options={'HIDDEN'}) class RenderCopySettings(bpy.types.PropertyGroup): diff --git a/render_copy_settings/operator.py b/render_copy_settings/operator.py index d503fffc..3b0da84f 100644 --- a/render_copy_settings/operator.py +++ b/render_copy_settings/operator.py @@ -94,12 +94,12 @@ class RenderCopySettingsPrepare(bpy.types.Operator): try: regex = re.compile(cp_sett.filter_scene) except Exception as e: - self.report('ERROR_INVALID_INPUT', "The filter-scene " + self.report({'ERROR_INVALID_INPUT'}, "The filter-scene " "regex did not compile:\n (%s)." % str(e)) return {'CANCELLED'} except: regex = None - self.report('WARNING', "Unable to import the re module. " + self.report({'WARNING'}, "Unable to import the re module. " "Regex scene filtering will be disabled!") scenes = set() for scene in bpy.data.scenes: @@ -137,7 +137,7 @@ class RenderCopySettingsPreset(bpy.types.Operator): presets = EnumProperty(items=(p.rna_enum for p in presets.presets), default=set(), - options={"ENUM_FLAG"}) + options={'ENUM_FLAG'}) @staticmethod def process_elements(settings, elts): -- cgit v1.2.3