Author: Stephan <[email protected]>
Branch:
Changeset: r64:0a21415ef142
Date: 2011-05-18 11:13 +0200
http://bitbucket.org/pypy/lang-js/changeset/0a21415ef142/
Log: don't use super since the translator kind of dispise it
diff --git a/js/operations.py b/js/operations.py
--- a/js/operations.py
+++ b/js/operations.py
@@ -393,7 +393,7 @@
class CaseBlock(Statement):
def __init__(self, pos, clauses, default_clause):
- super(Cases, self).__init__(pos)
+ self.pos = pos
self.clauses = clauses
self.default_clause = default_clause
@@ -404,13 +404,13 @@
class CaseClause(Statement):
def __init__(self, pos, expressions, block):
- super(CaseClause, self).__init__(pos)
+ self.pos = pos
self.expressions = expressions
self.block = block
class StatementList(Statement):
def __init__(self, pos, block):
- super(StatementList, self).__init__(pos)
+ self.pos = pos
self.block = block
def emit(self, bytecode):
@@ -419,7 +419,7 @@
class DefaultClause(Statement):
def __init__(self, pos, block):
- super(DefaultClause, self).__init__(pos)
+ self.pos = pos
self.block = block
def emit(self, bytecode):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit