Skip to content

Commit

Permalink
Fix typos with codespell.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Dec 22, 2022
1 parent cc7d77f commit 213f393
Show file tree
Hide file tree
Showing 151 changed files with 317 additions and 317 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Backported everything up to and including https://github.com/godotengine/godot/c
- Fix requesting write locks in WebNodes.
- Fix default argument for the binding of WebServerRequest::send_redirect.
- Fix: WebPermission was meant to be a Resource.
- Fix mimetype handling in the simle server. Also added a few misisng ones.
- Fix mimetype handling in the simle server. Also added a few missing ones.
- Fixed rendering the menu of the BrowsableFolderServeWebPage and StaticWebPage.

#### Build System
Expand Down Expand Up @@ -413,7 +413,7 @@ Added an icon for UserModule.
- [[Thread Pool]](https://github.com/Relintai/thread_pool) - A c++ Godot engine module which makes it easy to run methods in threads.
- [[Texture Packer]](https://github.com/Relintai/texture_packer) - A c++ Godot engine module, to layer, pack, and merge textures at runtime.
- [[Mesh Data Resource]](https://github.com/Relintai/mesh_data_resource) - A Godot c++ engine module. It adds a data-only mesh type with an importer.
- [[Mesh Utils]](https://github.com/Relintai/mesh_utils) - A c++ Godot engine module containing utilites for working with mehses (Like simplification).
- [[Mesh Utils]](https://github.com/Relintai/mesh_utils) - A c++ Godot engine module containing utilities for working with mehses (Like simplification).
- [[Godot Fastnoise]](https://github.com/Relintai/godot_fastnoise) - Zylann's godot_fastnoise, but with compile fixes for 4.0, and a Resource class.
- [[UI Extensions]](https://github.com/Relintai/ui_extensions) - Small extensions engine module for GODOT.
- [[Skeleton Editor]](https://github.com/Relintai/skeleton_editor) - Godot engine module version of TokageItLab's skeleton editor pr, that got deprecated, but [[my godot fork]](https://github.com/Relintai/godot/tree/3.x) has it fully implemented.
Expand Down Expand Up @@ -490,7 +490,7 @@ Added an icon for UserModule.

#### Platforms

- UWP (I was never once able to succesfully set up the environment for it to compile during the last 3 years).
- UWP (I was never once able to successfully set up the environment for it to compile during the last 3 years).

#### Editor

Expand All @@ -512,11 +512,11 @@ Added an icon for UserModule.

#### module: ui_extensions

- Removed TMeshInstance, and changed the core MeshInstance to wrok the way I need it instead.
- Removed TMeshInstance, and changed the core MeshInstance to work the way I need it instead.

#### other

- Removed the github issue tamplates.
- Removed the github issue templates.

### Fixed

Expand All @@ -534,7 +534,7 @@ Added an icon for UserModule.

#### Other

- Github actions have been simplifed and fixed.
- Github actions have been simplified and fixed.
- Godot's regression test tool have been updated / fixed.
- Fixed all crashed the regression test tool found by throwing invalid / unexpected arguments at methods.
- Cleanups to the docs.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ for compilation instructions for every supported platform.

## Documentation and demos

The documantation is available in this repo under the doc/engine folder. [[Here]](https://github.com/Relintai/pandemonium_engine/tree/master/doc/engine).
The documentation is available in this repo under the doc/engine folder. [[Here]](https://github.com/Relintai/pandemonium_engine/tree/master/doc/engine).

You can also look at the official Godot documentation. It is hosted on [ReadTheDocs](https://docs.godotengine.org), and
is maintained by the Godot community in its own [GitHub repository](https://github.com/godotengine/godot-docs).
Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Action.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _function_contents(func):

def _object_instance_content(obj):
"""
Returns consistant content for a action class or an instance thereof
Returns consistent content for a action class or an instance thereof
:Parameters:
- `obj` Should be either and action class or an instance thereof
Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def CheckTypeSize(context, type_name, header = None, language = None, expect = N
size = int(out)
except ValueError:
# If cannot convert output of test prog to an integer (the size),
# something went wront, so just fail
# something went wrong, so just fail
st = 1
size = 0

Expand Down
16 changes: 8 additions & 8 deletions SCSCons/Environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def __init__(self, **kw):
"""
if SCons.Debug.track_instances: logInstanceCreation(self, 'Environment.SubstitutionEnvironment')
self.fs = SCons.Node.FS.get_default_fs()
self.ans = SCons.Node.Alias.default_ans
self.and = SCons.Node.Alias.default_ans
self.lookup_list = SCons.Node.arg2nodes_lookups
self._dict = kw.copy()
self._init_special()
Expand Down Expand Up @@ -567,7 +567,7 @@ def backtick(self, command):
'universal_newlines' : True,
}
# if the command is a list, assume it's been quoted
# othewise force a shell
# otherwise force a shell
if not is_List(command): kw['shell'] = True
# run constructed command
p = SCons.Action._subproc(self, command, **kw)
Expand Down Expand Up @@ -818,7 +818,7 @@ def append_define(name, dict = dict):
def MergeFlags(self, args, unique=True):
"""Merge flags into construction variables.
Merges the flags from ``args`` into this construction environent.
Merges the flags from ``args`` into this construction environment.
If ``args`` is not a dict, it is first converted to a dictionary with
flags distributed into appropriate construction variables.
See :meth:`ParseFlags`.
Expand Down Expand Up @@ -865,12 +865,12 @@ def MergeFlags(self, args, unique=True):
add_to_orig(value)
t = []
if key[-4:] == 'PATH':
### keep left-most occurence
### keep left-most occurrence
for v in orig:
if v not in t:
t.append(v)
else:
### keep right-most occurence
### keep right-most occurrence
for v in orig[::-1]:
if v not in t:
t.insert(0, v)
Expand Down Expand Up @@ -942,7 +942,7 @@ def __init__(
if SCons.Debug.track_instances: logInstanceCreation(self, 'Environment.Base')
self._memo = {}
self.fs = SCons.Node.FS.get_default_fs()
self.ans = SCons.Node.Alias.default_ans
self.and = SCons.Node.Alias.default_ans
self.lookup_list = SCons.Node.arg2nodes_lookups
self._dict = semi_deepcopy(SCons.Defaults.ConstructionEnvironment)
self._init_special()
Expand Down Expand Up @@ -1941,7 +1941,7 @@ def AddPostAction(self, files, action):
return nodes

def Alias(self, target, source=[], action=None, **kw):
tlist = self.arg2nodes(target, self.ans.Alias)
tlist = self.arg2nodes(target, self.and.Alias)
if not is_List(source):
source = [source]
source = [_f for _f in source if _f]
Expand Down Expand Up @@ -2088,7 +2088,7 @@ def Command(self, target, source, action, **kw):
return bld(self, target, source, **kw)

def Depends(self, target, dependency):
"""Explicity specify that 'target's depend on 'dependency'."""
"""Explicitly specify that 'target's depend on 'dependency'."""
tlist = self.arg2nodes(target, self.fs.Entry)
dlist = self.arg2nodes(dependency, self.fs.Entry)
for t in tlist:
Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Job.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def handler(signum, stack, self=self, parentpid=os.getpid()):
pass
if (self.old_sigint is None) or (self.old_sigterm is None) or \
(hasattr(self, "old_sighup") and self.old_sighup is None):
msg = "Overwritting previous signal handler which was not installed from Python. " + \
msg = "Overwriting previous signal handler which was not installed from Python. " + \
"Will not be able to reinstate and so will return to default handler."
SCons.Warnings.warn(SCons.Warnings.SConsWarning, msg)

Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Node/FS.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def splitdrive(p):
# For Now disable hard & softlinks for win32
# PY3 supports them, but the rest of SCons is not ready for this
# in some cases user permissions may be required.
# TODO: See if theres a reasonable way to enable using links on win32/64
# TODO: See if there's a reasonable way to enable using links on win32/64

if hasattr(os, 'link') and sys.platform != 'win32':
def _hardlink_func(fs, src, dst):
Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Node/Python.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_text_contents(self) -> str:
###TODO: something reasonable about universal newlines
contents = str(self.value)
for kid in self.children(None):
# Get csig() value of child as this is more efficent
# Get csig() value of child as this is more efficient
contents = contents + kid.get_csig()
return contents

Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Platform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def __call__(self, target, source, env, for_signature):
# to avoid creating two temporary files one for print and one for execute.
if node is not None:
try:
# Storing in tempfile_cmdlist by self.cmd provided when intializing
# Storing in tempfile_cmdlist by self.cmd provided when initializing
# $TEMPFILE{} fixes issue raised in PR #3140 and #3553
node.attributes.tempfile_cmdlist[cmdlist_key] = cmdlist
except AttributeError:
Expand Down
22 changes: 11 additions & 11 deletions SCSCons/Platform/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,34 +76,34 @@ def win_api_copyfile(src,dst):
import threading
spawn_lock = threading.Lock()

# This locked version of spawnve works around a Windows
# MSVCRT bug, because its spawnve is not thread-safe.
# This locked version of spawn works around a Windows
# MSVCRT bug, because its spawn is not thread-safe.
# Without this, python can randomly crash while using -jN.
# See the python bug at http://bugs.python.org/issue6476
# and SCons issue at
# https://github.com/SCons/scons/issues/2449
def spawnve(mode, file, args, env):
def spawn(mode, file, args, env):
spawn_lock.acquire()
try:
if mode == os.P_WAIT:
ret = os.spawnve(os.P_NOWAIT, file, args, env)
ret = os.spawn(os.P_NOWAIT, file, args, env)
else:
ret = os.spawnve(mode, file, args, env)
ret = os.spawn(mode, file, args, env)
finally:
spawn_lock.release()
if mode == os.P_WAIT:
pid, status = os.waitpid(ret, 0)
ret = status >> 8
return ret
except ImportError:
# Use the unsafe method of spawnve.
# Use the unsafe method of spawn.
# Please, don't try to optimize this try-except block
# away by assuming that the threading module is always present.
# In the test test/option-j.py we intentionally call SCons with
# a fake threading.py that raises an import exception right away,
# simulating a non-existent package.
def spawnve(mode, file, args, env):
return os.spawnve(mode, file, args, env)
def spawn(mode, file, args, env):
return os.spawn(mode, file, args, env)

# The upshot of all this is that, if you are using Python 1.5.2,
# you had better have cmd or command.com in your PATH when you run
Expand Down Expand Up @@ -150,7 +150,7 @@ def piped_spawn(sh, escape, cmd, args, env, stdout, stderr):
# actually do the spawn
try:
args = [sh, '/C', escape(' '.join(args))]
ret = spawnve(os.P_WAIT, sh, args, env)
ret = spawn(os.P_WAIT, sh, args, env)
except OSError as e:
# catch any error
try:
Expand Down Expand Up @@ -183,7 +183,7 @@ def piped_spawn(sh, escape, cmd, args, env, stdout, stderr):

def exec_spawn(l, env):
try:
result = spawnve(os.P_WAIT, l[0], l, env)
result = spawn(os.P_WAIT, l[0], l, env)
except (OSError, EnvironmentError) as e:
try:
result = exitvalmap[e.errno]
Expand Down Expand Up @@ -226,7 +226,7 @@ def get_system_root():
if _system_root is not None:
return _system_root

# A resonable default if we can't read the registry
# A reasonable default if we can't read the registry
val = os.environ.get('SystemRoot', "C:\\WINDOWS")

if SCons.Util.can_read_reg:
Expand Down
16 changes: 8 additions & 8 deletions SCSCons/SConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __init__(self,target):
SConfError.__init__(self,msg)

class ConfigureCacheError(SConfError):
"""Raised when a use explicitely requested the cache feature, but the test
"""Raised when a use explicitly requested the cache feature, but the test
is run the first time."""
def __init__(self,target):
SConfError.__init__(self, '"%s" is not yet built and cache is forced.' % str(target))
Expand Down Expand Up @@ -264,15 +264,15 @@ def failed(self):
return SCons.Taskmaster.Task.failed(self)

def collect_node_states(self):
# returns (is_up_to_date, cached_error, cachable)
# returns (is_up_to_date, cached_error, cacheable)
# where is_up_to_date is 1, if the node(s) are up_to_date
# cached_error is 1, if the node(s) are up_to_date, but the
# build will fail
# cachable is 0, if some nodes are not in our cache
# cacheable is 0, if some nodes are not in our cache
T = 0
changed = False
cached_error = False
cachable = True
cacheable = True
for t in self.targets:
if T: Trace('%s' % t)
bi = t.get_stored_info().binfo
Expand All @@ -292,21 +292,21 @@ def collect_node_states(self):
if T: Trace(': else')
# the node hasn't been built in a SConf context or doesn't
# exist
cachable = False
cacheable = False
changed = ( t.get_state() != SCons.Node.up_to_date )
if T: Trace(': changed %s' % changed)
if T: Trace('\n')
return (not changed, cached_error, cachable)
return (not changed, cached_error, cacheable)

def execute(self):
if not self.targets[0].has_builder():
return

sconf = sconf_global

is_up_to_date, cached_error, cachable = self.collect_node_states()
is_up_to_date, cached_error, cacheable = self.collect_node_states()

if cache_mode == CACHE and not cachable:
if cache_mode == CACHE and not cacheable:
raise ConfigureCacheError(self.targets[0])
elif cache_mode == FORCE:
is_up_to_date = 0
Expand Down
4 changes: 2 additions & 2 deletions SCSCons/Scanner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ScannerBase:
passes control to other Scanners.
A scanner function takes three arguments: a Node to scan for
dependecies, the construction environment to use, and an optional
dependencies, the construction environment to use, and an optional
tuple of paths (as generated by the optional path function).
It must return a list containing the Nodes for all the direct
dependencies of the file.
Expand Down Expand Up @@ -383,7 +383,7 @@ def scan(self, node, path=()):

# This is a hand-coded DSU (decorate-sort-undecorate, or
# Schwartzian transform) pattern. The sort key is the raw name
# of the file as specifed on the #include line (including the
# of the file as specified on the #include line (including the
# " or <, since that may affect what file is found), which lets
# us keep the sort order constant regardless of whether the file
# is actually found in a Repository or locally.
Expand Down
6 changes: 3 additions & 3 deletions SCSCons/Script/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def find_deepest_user_frame(tb):

def _scons_user_error(e):
"""Handle user errors. Print out a message and a description of the
error, along with the line number and routine where it occured.
error, along with the line number and routine where it occurred.
The file and line number will be the deepest stack frame that is
not part of SCons itself.
"""
Expand All @@ -594,7 +594,7 @@ def _scons_user_error(e):

def _scons_user_warning(e):
"""Handle user warnings. Print out a message and a description of
the warning, along with the line number and routine where it occured.
the warning, along with the line number and routine where it occurred.
The file and line number will be the deepest stack frame that is
not part of SCons itself.
"""
Expand Down Expand Up @@ -1287,7 +1287,7 @@ def tmtrace_cleanup(tfile):
# python_has_threads = sysconfig.get_config_var('WITH_THREAD') or is_pypy or is_37_or_later

# As of python 3.4 threading has a dummy_threading module for use when there is no threading
# it's get_ident() will allways return -1, while real threading modules get_ident() will
# it's get_ident() will always return -1, while real threading modules get_ident() will
# always return a positive integer
python_has_threads = threading.get_ident() != -1
# to check if python configured with threads.
Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Script/SConsOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class SConsOptionGroup(optparse.OptionGroup):
def format_help(self, formatter):
""" Format an option group's help text.
The title is dedented so it's flush with the "SCons Options"
The title is indented so it's flush with the "SCons Options"
title we print at the top.
"""
formatter.dedent()
Expand Down
2 changes: 1 addition & 1 deletion SCSCons/Subst.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def scons_subst(strSubst, env, mode=SUBST_RAW, target=None, source=None, gvars={

# Now replace escaped $'s currently "$$"
# This is needed because we now retain $$ instead of
# replacing them during substition to avoid
# replacing them during substitution to avoid
# improperly trying to escape "$$(" as being "$("
result = result.replace('$$','$')
elif is_Sequence(result):
Expand Down
8 changes: 4 additions & 4 deletions SCSCons/Tool/GettextCommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ class _POFileBuilder(BuilderBase):
This is multi-target single-source builder. In typical situation the source
is single `POT` file, e.g. `messages.pot`, and there are multiple `PO`
targets to be updated from this `POT`. We must run
`SCons.Builder.BuilderBase._execute()` separatelly for each target to track
dependencies separatelly for each target file.
`SCons.Builder.BuilderBase._execute()` separately for each target to track
dependencies separately for each target file.
**NOTE**: if we call `SCons.Builder.BuilderBase._execute(.., target, ...)`
with target being list of all targets, all targets would be rebuilt each time
one of the targets from this list is missing. This would happen, for example,
when new language `ll` enters `LINGUAS_FILE` (at this moment there is no
`ll.po` file yet). To avoid this, we override
`SCons.Builder.BuilerBase._execute()` and call it separatelly for each
`SCons.Builder.BuilerBase._execute()` and call it separately for each
target. Here we also append to the target list the languages read from
`LINGUAS_FILE`.
"""
Expand Down Expand Up @@ -212,7 +212,7 @@ def _execute(self, env, target, source, *args, **kw):
""" Execute builder's actions.
Here we append to `target` the languages read from `$LINGUAS_FILE` and
apply `SCons.Builder.BuilderBase._execute()` separatelly to each target.
apply `SCons.Builder.BuilderBase._execute()` separately to each target.
The arguments and return value are same as for
`SCons.Builder.BuilderBase._execute()`.
"""
Expand Down
Loading

0 comments on commit 213f393

Please sign in to comment.