Commits

Lucian Brănescu-Mihăilă committed 908bb2e

Minor cleanups in exception. Tests still don't pass.

Comments (0)

Files changed (2)

objects/src/exception.winxed

 namespace Python {
 
 function exception(type, object) {
-    var i = type.__new__(type, 'BaseException', [object]);
-
-    i.__new__ = function(cls) {
+    var f = type.__new__;
+    var t = f(type, 'BaseException', [object]);
+    
+    t.__new__ = function(cls) {
         var n = new Python.instance;
         n.__class__ = cls;
         n.__value__ = new 'Exception';
 
         return n;
     };
-
-    return i;
+   
+    return t;
 }
 
 }

objects/t/exception.t

 
 class exception {
     function init() {
-        var e = excls();
+        excls();
     }
 
     function throw() {