Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-09-17 12:36:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-09-17 12:36:17 +0400
commit0e0e528ea4f9529a549ab50a6a2da7a3187258a8 (patch)
tree665ad9cb332268f7639e00ad665bbdf8d14a7a8b /release/scripts/modules
parentf0f398dcf3101079f4965185eb82c23c54fc6923 (diff)
Cleanup: pep8
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/bl_i18n_utils/bl_extract_messages.py4
-rw-r--r--release/scripts/modules/bl_i18n_utils/utils.py2
-rw-r--r--release/scripts/modules/bpy_types.py2
-rw-r--r--release/scripts/modules/rna_xml.py5
4 files changed, 6 insertions, 7 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
index ad2a70b84e8..8874ecceb77 100644
--- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
+++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
@@ -343,10 +343,10 @@ def dump_rna_messages(msgs, reports, settings, verbose=False):
process_msg(msgs, default_context, cls.__doc__, msgsrc, reports, check_ctxt_rna_tip, settings)
# Panels' "tabs" system.
- if hasattr(bl_rna, 'bl_category') and bl_rna.bl_category:
+ if hasattr(bl_rna, 'bl_category') and bl_rna.bl_category:
process_msg(msgs, default_context, bl_rna.bl_category, msgsrc, reports, check_ctxt_rna, settings)
- if hasattr(bl_rna, 'bl_label') and bl_rna.bl_label:
+ if hasattr(bl_rna, 'bl_label') and bl_rna.bl_label:
process_msg(msgs, msgctxt, bl_rna.bl_label, msgsrc, reports, check_ctxt_rna, settings)
walk_properties(cls)
diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py
index 85977642bbb..911e1764698 100644
--- a/release/scripts/modules/bl_i18n_utils/utils.py
+++ b/release/scripts/modules/bl_i18n_utils/utils.py
@@ -1343,7 +1343,7 @@ class I18n:
#key = self.settings.PO_HEADER_KEY
#for uid, trans in self.trans.items():
#if key not in trans.msgs:
- #trans.msgs[key]
+ #trans.msgs[key]
self.unescape()
def write(self, kind, langs=set()):
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index bc2e9368b71..e19766310ec 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -694,7 +694,7 @@ class _GenericUI:
draw_funcs = cls._dyn_ui_initialize()
try:
draw_funcs.remove(draw_func)
- except:
+ except ValueError:
pass
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py
index 9776993b74b..41f890de51f 100644
--- a/release/scripts/modules/rna_xml.py
+++ b/release/scripts/modules/rna_xml.py
@@ -92,7 +92,6 @@ def rna2xml(fw=print_ln,
bpy.types.Sequence,
)
-
def number_to_str(val, val_type):
if val_type == int:
return "%d" % val
@@ -245,13 +244,13 @@ def xml2rna(root_xml,
):
def rna2xml_node(xml_node, value):
-# print("evaluating:", xml_node.nodeName)
+ # print("evaluating:", xml_node.nodeName)
# ---------------------------------------------------------------------
# Simple attributes
for attr in xml_node.attributes.keys():
-# print(" ", attr)
+ # print(" ", attr)
subvalue = getattr(value, attr, Ellipsis)
if subvalue is Ellipsis: