[pypy-svn] r66444 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Mon Jul 20 17:49:50 CEST 2009


Author: benjamin
Date: Mon Jul 20 17:49:49 2009
New Revision: 66444

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
Log:
fix spelling

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py	Mon Jul 20 17:49:49 2009
@@ -510,7 +510,7 @@
             if op == possible_op.index:
                 return _stack_effect_computers[possible_op.index](arg)
         else:
-            raise AssertionError("unkown opcode: %s" % (op,))
+            raise AssertionError("unknown opcode: %s" % (op,))
     else:
         try:
             return _static_opcode_stack_effects[op]

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py	Mon Jul 20 17:49:49 2009
@@ -85,7 +85,7 @@
                         stmts.append(self.handle_stmt(stmt))
                 return ast.Interactive(stmts)
         else:
-            raise AssertionError("unkown root node")
+            raise AssertionError("unknown root node")
 
     def number_of_statements(self, n):
         stmt_type = n.type
@@ -157,7 +157,7 @@
         elif isinstance(expr, ast.Repr):
             error = "repr"
         else:
-            raise AssertionError("unkown expression in set_context()")
+            raise AssertionError("unknown expression in set_context()")
         if error is not None:
             if ctx == ast.Store:
                 action = "assign to"
@@ -219,7 +219,7 @@
             return ast.Raise(exc, value, traceback, flow_node.lineno,
                              flow_node.column)
         else:
-            raise AssertionError("unkown flow statement")
+            raise AssertionError("unknown flow statement")
 
     def alias_for_import_name(self, import_name, store=True):
         while True:
@@ -259,7 +259,7 @@
             elif import_name_type == tokens.STAR:
                 return ast.alias("*", None)
             else:
-                raise AssertionError("unkown import name")
+                raise AssertionError("unknown import name")
 
     def handle_import_stmt(self, import_node):
         import_node = import_node.children[0]
@@ -298,7 +298,7 @@
                     self.error("trailing comma is only allowed with "
                                "surronding parenthesis", names_node)
             else:
-                raise AssertionError("unkown import node")
+                raise AssertionError("unknown import node")
             if star_import:
                 aliases = [self.alias_for_import_name(names_node)]
             else:
@@ -309,7 +309,7 @@
             return ast.ImportFrom(modname, aliases, dot_count,
                                   import_node.lineno, import_node.column)
         else:
-            raise AssertionError("unkown import node")
+            raise AssertionError("unknown import node")
 
     def handle_global_stmt(self, global_node):
         names = [global_node.children[i].value
@@ -405,7 +405,7 @@
             body = self.handle_suite(if_node.children[3])
             return ast.If(expr, body, otherwise, if_node.lineno, if_node.column)
         else:
-            raise AssertionError("unkown if statement configuration")
+            raise AssertionError("unknown if statement configuration")
 
     def handle_while_stmt(self, while_node):
         loop_test = self.handle_expr(while_node.children[1])
@@ -610,7 +610,7 @@
                 self.check_forbidden_name(keywords_arg, name_node)
                 i += 3
             else:
-                raise AssertionError("unkown node in argument list")
+                raise AssertionError("unknown node in argument list")
         if not defaults:
             defaults = None
         if not args:
@@ -689,7 +689,7 @@
             else:
                 raise AssertionError("unhandled compound statement")
         else:
-            raise AssertionError("unkown statment type")
+            raise AssertionError("unknown statment type")
 
     def handle_expr_stmt(self, stmt):
         if len(stmt.children) == 1:
@@ -804,7 +804,7 @@
             elif expr_node_type == syms.power:
                 return self.handle_power(expr_node)
             else:
-                raise AssertionError("unkown expr")
+                raise AssertionError("unknown expr")
 
     def handle_lambdef(self, lambdef_node):
         expr = self.handle_expr(lambdef_node.children[-1])
@@ -1132,7 +1132,7 @@
             expr = self.handle_testlist(atom_node.children[1])
             return ast.Repr(expr, atom_node.lineno, atom_node.column)
         else:
-            raise AssertionError("unkown atom")
+            raise AssertionError("unknown atom")
 
     def handle_testlist_gexp(self, gexp_node):
         if len(gexp_node.children) > 1 and \

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	Mon Jul 20 17:49:49 2009
@@ -302,7 +302,7 @@
             self.emit_op(self._op_for_augassign(assign.op))
             self.name_op(target.id, ast.Store)
         else:
-            raise AssertionError("unkown augassign")
+            raise AssertionError("unknown augassign")
 
     def visit_Assert(self, asrt):
         self.update_position(asrt.lineno)
@@ -1076,7 +1076,7 @@
         elif isinstance(slc, ast.Index):
             slc.value.walkabout(self)
         else:
-            raise AssertionError("unkown nested slice type")
+            raise AssertionError("unknown nested slice type")
 
     def _compile_slice(self, slc, ctx):
         if isinstance(slc, ast.Index):
@@ -1101,7 +1101,7 @@
                     self._nested_slice(dim, ctx)
                 self.emit_op_arg(ops.BUILD_TUPLE, len(slc.dims))
         else:
-            raise AssertionError("unkown slice type")
+            raise AssertionError("unknown slice type")
         if ctx == ast.AugLoad:
             self.emit_op_arg(ops.DUP_TOPX, 2)
         elif ctx == ast.AugStore:

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py	Mon Jul 20 17:49:49 2009
@@ -261,7 +261,7 @@
                 err = "unqualified exec is not allowed in function '%s' " \
                     "because it %s" % (name, trailer)
             else:
-                raise AssertionError("unkown reason for unoptimization")
+                raise AssertionError("unknown reason for unoptimization")
             raise SyntaxError(err, node.lineno, node.col_offset)
         self.locals_fully_known = self.optimized and not self.has_exec
 
@@ -451,7 +451,7 @@
                 if is_toplevel:
                     self.implicit_arg(i)
             else:
-                raise AssertionError("unkown parameter type")
+                raise AssertionError("unknown parameter type")
         if not is_toplevel:
             self._handle_nested_params(params)
 



More information about the Pypy-commit mailing list