1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Bugfix: non-integer lists terminate with a NIL value that should

be skipped when unpacking terms (also submitted to author).
This commit is contained in:
Jimmy Olgeni 2002-11-16 20:22:55 +00:00
parent bb708d2cd0
commit b2cf40e6be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70262
2 changed files with 11 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= py_otp_interface
PORTVERSION= 0.91
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= http://www.erlang.org/contrib/
DISTNAME= py_interface-${PORTVERSION}

View File

@ -2,7 +2,7 @@
$FreeBSD$
--- erl_term.py.orig Wed May 29 00:09:25 2002
+++ erl_term.py Sat Nov 16 00:53:45 2002
+++ erl_term.py Sat Nov 16 17:40:38 2002
@@ -282,7 +282,7 @@
if dataLen < 5:
return (None, data)
@ -12,6 +12,15 @@ $FreeBSD$
elif data0 == MAGIC_FLOAT:
if dataLen < 32:
@@ -373,7 +373,7 @@
(elements, remainingData) = _UnpackTermSeq(arity, data[5:])
if elements == None:
return (None, data)
- return (ErlList(elements), remainingData)
+ return (ErlList(elements), remainingData[1:]) # skip MAGIC_NIL
elif data0 == MAGIC_BINARY:
if dataLen < 5:
@@ -552,11 +552,11 @@
def _PackString(term):