Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion java2python/compiler/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion java2python/compiler/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion java2python/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion java2python/lang/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion java2python/mod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
4 changes: 2 additions & 2 deletions test/configs/Interface3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
Expand All @@ -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,
Expand Down