[MERGED] libosmocore[master]: utils/conv_gen.py: fix some typos

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Oct 23 07:38:17 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: utils/conv_gen.py: fix some typos
......................................................................


utils/conv_gen.py: fix some typos

Change-Id: I3327b92715744af4ef61496ef0121555d9d24799
---
M utils/conv_gen.py
1 file changed, 6 insertions(+), 6 deletions(-)

Approvals:
  Tom Tsou: Looks good to me, but someone else must approve
  Max: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/utils/conv_gen.py b/utils/conv_gen.py
index c067104..865a5ee 100644
--- a/utils/conv_gen.py
+++ b/utils/conv_gen.py
@@ -39,7 +39,7 @@
 		self.name = name
 		self.description = description
 
-		# Handle polynoms (and check for recursion)
+		# Handle polynomials (and check for recursion)
 		self.polys = [(1, 1) if x[0] == x[1] else x for x in polys]
 
 		# Determine the polynomial degree
@@ -51,11 +51,11 @@
 		rp = [x[1] for x in self.polys if x[1] != 1]
 		if rp:
 			if not all([x == rp[0] for x in rp]):
-				raise ValueError("Bad polynoms: "
-					"Can't have multiple different divider polynoms!")
+				raise ValueError("Bad polynomials: "
+					"Can't have multiple different divider polynomials!")
 
 			if not all([x[0] == 1 for x in polys if x[1] == 1]):
-				raise ValueError("Bad polynoms: "
+				raise ValueError("Bad polynomials: "
 					"Can't have a '1' divider with a non '1' dividend "
 					"in a recursive code")
 
@@ -87,7 +87,7 @@
 
 		src = (ns & 1) | (state << 1)
 
-		# Scan polynoms
+		# Scan polynomials
 		rv = []
 		for p_n, p_d in self.polys:
 			if self.recursive and p_d == 1:
@@ -106,7 +106,7 @@
 
 		src = (ns & 1) | (state << 1)
 
-		# Scan polynoms
+		# Scan polynomials
 		rv = []
 		for p_n, p_d in self.polys:
 			if self.recursive and p_d == 1:

-- 
To view, visit https://gerrit.osmocom.org/836
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3327b92715744af4ef61496ef0121555d9d24799
Gerrit-PatchSet: 8
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Tom Tsou <tom at tsou.cc>



More information about the gerrit-log mailing list