Hello community, here is the log from the commit of package python3-pybeam for openSUSE:Factory checked in at 2014-04-02 17:25:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-pybeam (Old) and /work/SRC/openSUSE:Factory/.python3-pybeam.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-pybeam" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-pybeam/python3-pybeam.changes 2014-03-18 14:00:03.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-pybeam.new/python3-pybeam.changes 2014-04-02 17:25:21.000000000 +0200 @@ -1,0 +2,8 @@ +Sat Mar 29 12:53:23 UTC 2014 - matwey.kornilov@gmail.com + +- Verision 0.3.1: + - fix parsing lists with not-null tail + - fix parsing strings ( six > 1.4.0 is required to support both + python 2 and python 3 ) + +------------------------------------------------------------------- Old: ---- pybeam-0.3.tar.gz New: ---- pybeam-0.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-pybeam.spec ++++++ --- /var/tmp/diff_new_pack.1IK1zd/_old 2014-04-02 17:25:21.000000000 +0200 +++ /var/tmp/diff_new_pack.1IK1zd/_new 2014-04-02 17:25:21.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-pybeam +# spec file for package python3-pybeam # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -17,17 +17,19 @@ Name: python3-pybeam -Version: 0.3 +Version: 0.3.1 Release: 0 Summary: Python module to parse Erlang BEAM files License: MIT Group: Development/Languages/Python Url: http://github.com/matwey/pybeam Source: http://pypi.python.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz +BuildRequires: python3 BuildRequires: python3-construct -BuildRequires: python3 python3-devel +BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-construct +Requires: python3-six >= 1.4.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch ++++++ pybeam-0.3.tar.gz -> pybeam-0.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybeam-0.3/PKG-INFO new/pybeam-0.3.1/PKG-INFO --- old/pybeam-0.3/PKG-INFO 2014-02-20 17:34:34.000000000 +0100 +++ new/pybeam-0.3.1/PKG-INFO 2014-03-29 14:00:16.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: pybeam -Version: 0.3 +Version: 0.3.1 Summary: Python module to parse Erlang BEAM files Home-page: http://github.com/matwey/pybeam Author: Matwey V. Kornilov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybeam-0.3/pybeam/eetf_construct.py new/pybeam-0.3.1/pybeam/eetf_construct.py --- old/pybeam-0.3/pybeam/eetf_construct.py 2014-02-20 17:30:18.000000000 +0100 +++ new/pybeam-0.3.1/pybeam/eetf_construct.py 2014-03-29 13:39:02.000000000 +0100 @@ -36,6 +36,15 @@ def _encode(self, obj, ctv): return list(obj) +class ListAdapter(Adapter): + def _decode(self, obj, ctx): + if type(obj[2]) == type(list()) and obj[2] == []: + return obj[1] + obj[1].append(obj[2]) + return obj[1] + def _encode(self, obj, ctx): + return (len(obj), obj, []) + def BigInteger(subconname, length_field = UBInt8("length")): def decode_big(obj,ctx): (length, isNegative, value) = obj @@ -122,17 +131,15 @@ nil = ExprAdapter(Sequence("nil"), encoder = lambda obj,ctx: (), decoder = lambda obj,ctx: []) -string = ExprAdapter(PascalString("string", length_field = UBInt16("length"), encoding="utf8"), +string = ExprAdapter(PascalString("string", length_field = UBInt16("length"), encoding=None), encoder = lambda obj,ctx: obj.value, decoder = lambda obj,ctx: etString(obj)) -list_ = ExprAdapter(Sequence("list", +list_ = ListAdapter(Sequence("list", UBInt32("length"), Array(lambda ctx: ctx.length, LazyBound("elements", lambda : term)), LazyBound("tail", lambda : term), - nested = False - ), - encoder = lambda obj,ctx: (len(obj), obj, []), - decoder = lambda obj,ctx: obj[1] + obj[2]) + nested = False, + )) binary = ExprAdapter(PascalString("binary", length_field = UBInt32("length")), encoder = lambda obj,ctx: obj.value, decoder = lambda obj,ctx: Binary(obj)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybeam-0.3/pybeam/erlang_types.py new/pybeam-0.3.1/pybeam/erlang_types.py --- old/pybeam-0.3/pybeam/erlang_types.py 2014-02-15 13:51:01.000000000 +0100 +++ new/pybeam-0.3.1/pybeam/erlang_types.py 2014-03-29 13:07:05.000000000 +0100 @@ -20,6 +20,8 @@ # THE SOFTWARE. # +from six import iterbytes + class AtomCacheReference: def __init__(self, index): self.index = index @@ -56,6 +58,10 @@ self.value = value def __eq__(self, other): return self.value == other.value + def __iter__(self): + return iterbytes(self.value) + def __len__(self): + return len(self.value) class Binary: def __init__(self, value): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybeam-0.3/pybeam.egg-info/PKG-INFO new/pybeam-0.3.1/pybeam.egg-info/PKG-INFO --- old/pybeam-0.3/pybeam.egg-info/PKG-INFO 2014-02-20 17:34:34.000000000 +0100 +++ new/pybeam-0.3.1/pybeam.egg-info/PKG-INFO 2014-03-29 14:00:16.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: pybeam -Version: 0.3 +Version: 0.3.1 Summary: Python module to parse Erlang BEAM files Home-page: http://github.com/matwey/pybeam Author: Matwey V. Kornilov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pybeam-0.3/setup.py new/pybeam-0.3.1/setup.py --- old/pybeam-0.3/setup.py 2014-02-20 17:30:33.000000000 +0100 +++ new/pybeam-0.3.1/setup.py 2014-03-29 13:48:42.000000000 +0100 @@ -1,7 +1,7 @@ from setuptools import setup setup(name='pybeam', - version='0.3', + version='0.3.1', description='Python module to parse Erlang BEAM files', url='http://github.com/matwey/pybeam', author='Matwey V. Kornilov', -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org