Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2014-04-05 16:49:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and      /work/SRC/openSUSE:Factory/.python-pybeam.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pybeam"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes      
2014-02-23 07:16:20.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2014-04-05 16:49:54.000000000 +0200
@@ -1,0 +2,8 @@
+Sat Mar 29 12:53:23 UTC 2014 - [email protected]
+
+- 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:
------------------
++++++ python-pybeam.spec ++++++
--- /var/tmp/diff_new_pack.tw8GVi/_old  2014-04-05 16:49:55.000000000 +0200
+++ /var/tmp/diff_new_pack.tw8GVi/_new  2014-04-05 16:49:55.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-pybeam
-Version:        0.3
+Version:        0.3.1
 Release:        0
 Summary:        Python module to parse Erlang BEAM files
 License:        MIT
@@ -28,6 +28,7 @@
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:       python-construct
+Requires:       python-six >= 1.4.0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}

++++++ 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to