diff --git a/java2python/compiler/template.py b/java2python/compiler/template.py index 4f4dfe1..c8e90a2 100644 --- a/java2python/compiler/template.py +++ b/java2python/compiler/template.py @@ -146,7 +146,7 @@ def __str__(self): return reduce(lambda v, func:func(self, v), handlers, self.dumps(-1)) def adopt(self, child, index=-1): - """ Adds child to this objecs children and sets the childs parent. """ + """ Adds child to this objects children and sets the childs parent. """ self.children.insert(index, child) child.parent = self diff --git a/java2python/compiler/visitor.py b/java2python/compiler/visitor.py index f62e53e..ceb26d9 100644 --- a/java2python/compiler/visitor.py +++ b/java2python/compiler/visitor.py @@ -868,7 +868,7 @@ def acceptThis(self, node, memo): self.pushRight('self') def acceptQuestion(self, node, memo): - """ Accept and process a terinary expression. """ + """ Accept and process a ternary expression. """ expr = self.factory.expr self.fs = FS.l + ' if ' + FS.r self.left = expr(parent=self) diff --git a/java2python/config/default.py b/java2python/config/default.py index 92c4a27..47a5197 100644 --- a/java2python/config/default.py +++ b/java2python/config/default.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # This is the default configuration file for java2python. Unless -# explicity disabled with the '-n' or '--nodefaults' option, the j2py +# explicitly disabled with the '-n' or '--nodefaults' option, the j2py # script will import this module for runtime configuration. from java2python.mod import basic, transform diff --git a/java2python/lang/base.py b/java2python/lang/base.py index 0633b8e..57f4ed2 100644 --- a/java2python/lang/base.py +++ b/java2python/lang/base.py @@ -114,7 +114,7 @@ def title(name): class TreeAdaptor(CommonTreeAdaptor): - """ TreeAdaptor -> defered tree node creator (for parsers). """ + """ TreeAdaptor -> deferred tree node creator (for parsers). """ def __init__(self, lexer, parser): # CommonTreeAdaptor doesn't need to be __init__'ed diff --git a/java2python/mod/__init__.py b/java2python/mod/__init__.py index aa73853..42c33bb 100644 --- a/java2python/mod/__init__.py +++ b/java2python/mod/__init__.py @@ -7,7 +7,7 @@ # sprinkling generated source with docstrings, comments, decorators, # etc. # -# The java2python.mod.inclues module contains functions that the +# The java2python.mod.include module contains functions that the # library will include directly -- as source code -- in the generated # output. # diff --git a/test/configs/Interface3.py b/test/configs/Interface3.py index f812f85..ffa9d0d 100644 --- a/test/configs/Interface3.py +++ b/test/configs/Interface3.py @@ -29,7 +29,7 @@ # the parser adds implemented interfaces to the class bases list. # this handler checks to see if any of those bases are interfaces, and -# if so, supresses them in favor of 'object' as the only base: +# if so, suppresses them in favor of 'object' as the only base: classBaseHandlers = [ basic.zopeImplementsClassBases, ] @@ -42,7 +42,7 @@ ] -# this handler supresses the "self" parameter on method signatures for +# this handler suppresses the "self" parameter on method signatures for # zope Interface definitions: methodParamHandlers = [ basic.zopeInterfaceMethodParams,