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:
authorIan Thompson <quornian@googlemail.com>2008-07-27 00:02:10 +0400
committerIan Thompson <quornian@googlemail.com>2008-07-27 00:02:10 +0400
commit6531d859ba4f61d6741b0e06bff07d07b3231910 (patch)
tree296190829a9738a2cd04b110033e6a9f12075ce7 /release/scripts/textplugin_suggest.py
parent9f19d88a5d5430b00ed63024a0832b28298dd6f7 (diff)
TextPlugin update: Converted try-except blocks to use try-catch-else to allow better error tracking. Commented the descriptor classes and improved variable support for basic types (string, list, etc.)
Diffstat (limited to 'release/scripts/textplugin_suggest.py')
-rw-r--r--release/scripts/textplugin_suggest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/textplugin_suggest.py b/release/scripts/textplugin_suggest.py
index f39e2db1f7f..c2a12ac15f5 100644
--- a/release/scripts/textplugin_suggest.py
+++ b/release/scripts/textplugin_suggest.py
@@ -11,9 +11,10 @@ Tooltip: 'Performs suggestions based on the context of the cursor'
try:
import bpy
from BPyTextPlugin import *
- OK = True
except ImportError:
OK = False
+else:
+ OK = True
def check_membersuggest(line, c):
pos = line.rfind('.', 0, c)