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:
Diffstat (limited to 'expansions/interpreter/code.py')
-rw-r--r--expansions/interpreter/code.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/expansions/interpreter/code.py b/expansions/interpreter/code.py
index 640c683..e23bb49 100644
--- a/expansions/interpreter/code.py
+++ b/expansions/interpreter/code.py
@@ -1,11 +1,11 @@
# coding: utf-8
# BlackSmith mark.2
-# exp_name = "interpreter" # /code.py v.x9
-# Id: 04~7c
-# Code © (2002-2005) by Mike Mintz [mikemintz@gmail.com]
-# Code © (2007) by Als [Als@exploit.in]
-# Code © (2009-2012) by WitcherGeralt [alkorgun@gmail.com]
+# exp_name = "interpreter" # /code.py v.x10
+# Id: 04~8c
+# Idea © (2002-2005) by Mike Mintz [mikemintz@gmail.com]
+# Idea © (2007) by Als [Als@exploit.in]
+# Code © (2009-2013) by WitcherGeralt [alkorgun@gmail.com]
class expansion_temp(expansion):
@@ -24,8 +24,8 @@ class expansion_temp(expansion):
answer = UnicodeType(eval(UnicodeType(body)))
if not answer.strip():
answer = "None (%s)" % (answer)
- except:
- answer = "%s - %s" % exc_info()
+ except Exception, exc:
+ answer = exc_str(exc)
else:
answer = AnsBase[1]
if not silent:
@@ -41,8 +41,8 @@ class expansion_temp(expansion):
body = args.pop()
try:
exec(UnicodeType(body + chr(10)), globals())
- except:
- answer = "%s - %s" % exc_info()
+ except Exception, exc:
+ answer = exc_str(exc)
else:
answer = AnsBase[4]
else: