Skip to content

Commit ebc98ba

Browse files
authored
grass.script: fix typos (#5638)
python/grass/script: fix typos Found via codespell
1 parent 821edd0 commit ebc98ba

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

python/grass/script/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ def region(region3d=False, complete=False, env=None):
12491249
>>> # obtain n, s, e and w values
12501250
>>> [curent_region[key] for key in "nsew"] # doctest: +ELLIPSIS
12511251
[..., ..., ..., ...]
1252-
>>> # obtain ns and ew resulutions
1252+
>>> # obtain ns and ew resolutions
12531253
>>> (curent_region['nsres'], curent_region['ewres']) # doctest: +ELLIPSIS
12541254
(..., ...)
12551255

python/grass/script/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def db_select(sql=None, filename=None, table=None, env=None, **args):
149149
>>> db_select(sql="SELECT cat,CITY FROM myfirestations WHERE cat < 4")
150150
(('1', 'Morrisville'), ('2', 'Morrisville'), ('3', 'Apex'))
151151
152-
Simplyfied usage (it performs <tt>SELECT * FROM myfirestations</tt>.)
152+
Simplified usage (it performs <tt>SELECT * FROM myfirestations</tt>.)
153153
154154
>>> db_select(table="myfirestations") # doctest: +ELLIPSIS
155155
(('1', '24', 'Morrisville #3', ... 'HS2A', '1.37'))

python/grass/script/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ class SessionHandle:
409409
with gs.setup.init("~/grassdata/nc_spm_08/user1", env=os.environ.copy()):
410410
# ... use GRASS modules here with env parameter
411411
gs.run_command("g.region", flags="p", env=session.env)
412-
# session ends automatically here, global environment was never modifed
412+
# session ends automatically here, global environment was never modified
413413
"""
414414

415415
def __init__(self, *, env, active=True, locked=False):

python/grass/script/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def mock_no_session(monkeypatch):
1212
"""Set the environment variables as if there would be no background session.
1313
14-
Use with usefixtures (not as a paramter) to avoid warnings about an unused
14+
Use with usefixtures (not as a parameter) to avoid warnings about an unused
1515
parameter::
1616
1717
@pytest.mark.usefixtures("mock_no_session")

python/grass/script/tests/utils_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def test_named_separators():
7-
"""Check that named separtors are recognized and correctly evaluated"""
7+
"""Check that named separators are recognized and correctly evaluated"""
88
assert gs.separator("pipe") == "|"
99
assert gs.separator("comma") == ","
1010
assert gs.separator("space") == " "
@@ -13,7 +13,7 @@ def test_named_separators():
1313

1414

1515
def test_backslash_separators():
16-
"""Check that separtors specified as an escape sequence are correctly evaluated"""
16+
"""Check that separators specified as an escape sequence are correctly evaluated"""
1717
assert gs.separator(r"\t") == "\t"
1818
assert gs.separator(r"\n") == "\n"
1919

python/grass/script/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def get_lib_path(modname, libname=None):
461461

462462

463463
def set_path(modulename, dirname=None, path="."):
464-
"""Set sys.path looking in the the local directory GRASS directories.
464+
"""Set sys.path looking in the local directory GRASS directories.
465465
466466
:param modulename: string with the name of the GRASS module
467467
:param dirname: string with the directory name containing the python

0 commit comments

Comments
 (0)