Skip to content

Commit

Permalink
chore: codespell typos fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Jan 8, 2023
1 parent fe692a5 commit 7353bfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plone/supermodel/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def name(schemaName, tree):
class IFieldExportImportHandler(Interface):
"""Named utilities corresponding to node names should be registered for
this interface. They will be called upon to build a schema fields out of
DOM ndoes.
DOM nodes.
"""

def read(node):
Expand Down
2 changes: 1 addition & 1 deletion plone/supermodel/schema.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ directory.
>>> tmpdir = tempfile.mkdtemp()
>>> schema_filename = os.path.join(tmpdir, 'schema.xml')
>>> with open(schema_filename, 'w') as fd:
... _ = fd.write(schema) # On Py3 write resturns the schema len
... _ = fd.write(schema) # On Py3 write returns the schema len

We can define interfaces from this using a helper function:

Expand Down
2 changes: 1 addition & 1 deletion plone/supermodel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def indent(node, level=0):
node_indent = level * (" " * INDENT_SIZE)
child_indent = (level + 1) * (" " * INDENT_SIZE)

# node has childen
# node has children
if len(node):

# add indent before first child node
Expand Down

0 comments on commit 7353bfc

Please sign in to comment.