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>2012-01-17 21:57:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-17 21:57:20 +0400
commit391a214303ed7d7307b8c26496d00607a1b34814 (patch)
tree49acedfee77fb086e005cbfc70199cf5c92e70b9 /release/scripts/modules
parent21b5dea29b513be759789048b178f18ab6e53a6e (diff)
pep8 edits, also remove unused vars
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/rna_xml.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py
index 634c74178fa..c39d904bf08 100644
--- a/release/scripts/modules/rna_xml.py
+++ b/release/scripts/modules/rna_xml.py
@@ -141,7 +141,7 @@ def rna2xml(fw=print_ln,
return number_to_str(s, subsubvalue_type)
else:
return " ".join([str_recursive(si) for si in s])
-
+
array_value = " ".join(str_recursive(v) for v in subvalue_rna)
node_attrs.append("%s=\"%s\"" % (prop, array_value))
@@ -308,13 +308,13 @@ def xml2rna(root_xml,
rna2xml_node(root_xml, root_rna)
-
# -----------------------------------------------------------------------------
# Utility function used by presets.
# The idea is you can run a preset like a script with a few args.
#
# This roughly matches the operator 'bpy.ops.script.python_file_run'
+
def _get_context_val(context, path):
path_full = "context." + path
try:
@@ -328,6 +328,7 @@ def _get_context_val(context, path):
return value
+
def xml_file_run(context, filepath, rna_map):
import xml.dom.minidom