Skip to content

Commit dced6e0

Browse files
committed
[chore] fix typos
closes #242 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent 2e4cd2d commit dced6e0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/util/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def check_group(g):
105105
if isinstance(g, basestring):
106106
gid = ref(cr, g)
107107
if not gid:
108-
_logger.warning("split_group(): Unknow group: %r", g)
108+
_logger.warning("split_group(): Unknown group: %r", g)
109109
return gid
110110
return g
111111

src/util/modules.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def merge_module(cr, old, into, update_dependers=True):
394394
# this can happen in case of temp modules added after a release if the database does not
395395
# know about this module, i.e: account_full_reconcile in 9.0
396396
# `into` should be know. Let it crash if not
397-
_logger.log(NEARLYWARN, "Unknow module %s. Skip merge into %s.", old, into)
397+
_logger.log(NEARLYWARN, "Unknown module %s. Skip merge into %s.", old, into)
398398
return
399399

400400
def _up(table, old, new):

src/util/orm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def __init__(self, model, *args, **kw):
370370
self._strategy = kw.pop("strategy", "flush")
371371
assert self._strategy in {"flush", "commit"}
372372
if kw:
373-
raise TypeError("Unknow arguments: %s" % ", ".join(kw))
373+
raise TypeError("Unknown arguments: %s" % ", ".join(kw))
374374

375375
self._patch = None
376376
self._it = chunks(ids, self._chunk_size, fmt=self._browse)
@@ -438,7 +438,7 @@ def create(self, values, **kw):
438438
"""
439439
multi = kw.pop("multi", version_gte("saas~11.5"))
440440
if kw:
441-
raise TypeError("Unknow arguments: %s" % ", ".join(kw))
441+
raise TypeError("Unknown arguments: %s" % ", ".join(kw))
442442

443443
if not values:
444444
raise ValueError("`create` cannot be called with an empty `values` argument")

tools/generate-inherit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def checkout(wd: Path, repo: Repo, version: Version) -> bool:
358358
["git", "show-ref", "-q", "--verify", f"refs/remotes/origin/{version.name}"], cwd=gitdir, check=False
359359
)
360360
if hasref.returncode != 0:
361-
return False # unknow branch
361+
return False # unknown branch
362362
subprocess.run(
363363
["git", "checkout", "-q", "--force", "-B", version.name, f"origin/{version.name}"], cwd=gitdir, check=True
364364
)

0 commit comments

Comments
 (0)