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

github.com/alkorgun/blacksmith-2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Korgun <alkorgun@gmail.com>2013-08-31 09:49:37 +0400
committerAl Korgun <alkorgun@gmail.com>2013-08-31 09:49:37 +0400
commit9545b467065214e1641ecc52b624f57f4fe9e84b (patch)
tree43e108c02ba3083fbf2e8679838f5ea9567ed5aa /expansions
parent925c5033bb5c78e73db2cd9aec34274df02b75dc (diff)
update of librarys
Diffstat (limited to 'expansions')
-rw-r--r--expansions/interpreter/code.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/expansions/interpreter/code.py b/expansions/interpreter/code.py
index 33b9266..0a792a2 100644
--- a/expansions/interpreter/code.py
+++ b/expansions/interpreter/code.py
@@ -1,8 +1,8 @@
# coding: utf-8
# BlackSmith mark.2
-# exp_name = "interpreter" # /code.py v.x11
-# Id: 04~9c
+# exp_name = "interpreter" # /code.py v.x12
+# Id: 04~10c
# Idea © (2002-2005) by Mike Mintz [mikemintz@gmail.com]
# Idea © (2007) by Als [Als@exploit.in]
# Code © (2009-2013) by WitcherGeralt [alkorgun@gmail.com]
@@ -51,15 +51,15 @@ class expansion_temp(expansion):
opts.add(temp)
body = args.pop()
if not all([(temp in opts) for temp in self.opts[-2:]]):
- if (self.opt_silent in opts):
+ if self.opt_silent in opts:
silent = True
try:
- exec(unicode(body + chr(10)), (locals if (self.opt_locals in opts) else globals)())
- except Exception, exc:
- answer = exc_str(exc)
+ exec(unicode(body + chr(10)), (locals if self.opt_locals in opts else globals)())
+ except:
+ answer = "%s - %s" % exc_info()
else:
try:
- answer = unicode(result) if (self.opt_result in opts) else AnsBase[4]
+ answer = unicode(result) if self.opt_result in opts else AnsBase[4]
except Exception, exc:
answer = exc_str(exc)
else: