lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.13-43-gb6e43cd

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.13-43-gb6e43cd



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  b6e43cdd6c137acf57193b749d5ed8950eaf2103 (commit)
      from  180788af207f394e38b458ad14fb68f4853f4a9a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=b6e43cdd6c137acf57193b749d5ed8950eaf2103

commit b6e43cdd6c137acf57193b749d5ed8950eaf2103
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Aug 8 16:51:04 2020 +0200

    Fix Python 3.6 issue in update script
    
    Fixes 180788a

diff --git a/update/gs1_ai.py b/update/gs1_ai.py
index 527a1c5..06e351b 100755
--- a/update/gs1_ai.py
+++ b/update/gs1_ai.py
@@ -54,10 +54,10 @@ def group_ai_ranges():
     for value in sorted(fetch_ais()):
         if value[1:] != prev[1:]:
             if first:
-                yield first, *prev
+                yield (first, *prev)
             first = value[0]
         prev = value
-    yield first, *prev
+    yield (first, *prev)
 
 
 if __name__ == '__main__':

-----------------------------------------------------------------------

Summary of changes:
 update/gs1_ai.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
python-stdnum