From afd5af0806df3a6e805ccc983506288f24c2441d Mon Sep 17 00:00:00 2001 From: Michael JIN Date: Sat, 11 Oct 2014 21:05:05 +0800 Subject: [PATCH] fix TypeError: str() takes at most 1 argument (2 given) --- RubyEval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RubyEval.py b/RubyEval.py index 9c4ace6..700a583 100644 --- a/RubyEval.py +++ b/RubyEval.py @@ -47,7 +47,7 @@ def eval_as_ruby(self, script): output += "\n" + error try: - return str(output, 'utf-8') + return str(output) except NameError: return unicode(output ,encoding='utf-8')