[MERGED] libosmocore[master]: utils/conv_gen.py: explicitly import reduce()

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Wed Nov 2 08:37:56 UTC 2016


Vadim Yanitskiy has submitted this change and it was merged.

Change subject: utils/conv_gen.py: explicitly import reduce()
......................................................................


utils/conv_gen.py: explicitly import reduce()

This change finally makes the script able to be executed
in Python 3 environment. Due to new Python 3 restrictions,
the reduce() should be imported explicitly.

Change-Id: Icbc81c29f1a226aeed2c1245a5d60809fe124005
---
M utils/conv_gen.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/utils/conv_gen.py b/utils/conv_gen.py
index 78b2335..62fa8ad 100644
--- a/utils/conv_gen.py
+++ b/utils/conv_gen.py
@@ -24,6 +24,7 @@
 """
 
 import sys, os, math
+from functools import reduce
 
 class ConvolutionalCode(object):
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icbc81c29f1a226aeed2c1245a5d60809fe124005
Gerrit-PatchSet: 2
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: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list