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>2011-10-13 05:29:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-13 05:29:08 +0400
commit276e5f709518e0a64c7bf520062de9ed9337572f (patch)
tree6da5f0feebe6cb810a47aa1ec4683d4cb34ca822 /source/blender/python/intern/bpy_util.c
parent6955c47faca1c772c9278136d53337c2083aea18 (diff)
formatting edits & remove debug print.
Diffstat (limited to 'source/blender/python/intern/bpy_util.c')
-rw-r--r--source/blender/python/intern/bpy_util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/python/intern/bpy_util.c b/source/blender/python/intern/bpy_util.c
index 1450621d59e..516a9e49a39 100644
--- a/source/blender/python/intern/bpy_util.c
+++ b/source/blender/python/intern/bpy_util.c
@@ -48,7 +48,7 @@ char *BPy_enum_as_string(EnumPropertyItem *item)
char *cstring;
for (e= item; item->identifier; item++) {
- if(item->identifier[0])
+ if (item->identifier[0])
BLI_dynstr_appendf(dynstr, (e==item)?"'%s'":", '%s'", item->identifier);
}
@@ -63,11 +63,11 @@ short BPy_reports_to_error(ReportList *reports, PyObject *exception, const short
report_str= BKE_reports_string(reports, RPT_ERROR);
- if(clear) {
+ if (clear) {
BKE_reports_clear(reports);
}
- if(report_str) {
+ if (report_str) {
PyErr_SetString(exception, report_str);
MEM_freeN(report_str);
}
@@ -89,7 +89,7 @@ short BPy_errors_to_report(ReportList *reports)
return 1;
/* less hassle if we allow NULL */
- if(reports==NULL) {
+ if (reports==NULL) {
PyErr_Print();
PyErr_Clear();
return 1;
@@ -97,13 +97,13 @@ short BPy_errors_to_report(ReportList *reports)
pystring= PyC_ExceptionBuffer();
- if(pystring==NULL) {
+ if (pystring==NULL) {
BKE_report(reports, RPT_ERROR, "unknown py-exception, couldn't convert");
return 0;
}
PyC_FileAndNum(&filename, &lineno);
- if(filename==NULL)
+ if (filename==NULL)
filename= "<unknown location>";
cstring= _PyUnicode_AsString(pystring);