1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Caught bug (typo) in erl_term._PackString. Also submitted to author.

This commit is contained in:
Jimmy Olgeni 2002-11-16 00:18:29 +00:00
parent 27e73618d6
commit 12a8460281
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70213
2 changed files with 17 additions and 3 deletions

View File

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

View File

@ -1,8 +1,8 @@
$FreeBSD$
--- erl_term.py.orig Fri Nov 15 18:53:36 2002
+++ erl_term.py Fri Nov 15 18:54:03 2002
--- erl_term.py.orig Wed May 29 00:09:25 2002
+++ erl_term.py Sat Nov 16 00:53:45 2002
@@ -282,7 +282,7 @@
if dataLen < 5:
return (None, data)
@ -12,3 +12,17 @@ $FreeBSD$
elif data0 == MAGIC_FLOAT:
if dataLen < 32:
@@ -552,11 +552,11 @@
def _PackString(term):
if len(term) == 0:
- return PackList([])
+ return _PackList([])
elif len(term) <= 65535:
return _PackInt1(MAGIC_STRING) + _PackInt2(len(term)) + term
else:
- return PackList(map(lambda c: ord(c), term))
+ return _PackList(map(lambda c: ord(c), term))
def _PackList(term):
if len(term) == 0: