Hello community,

here is the log from the commit of package python-simplejson for 
openSUSE:Factory checked in at 2013-11-04 13:41:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-simplejson (Old)
 and      /work/SRC/openSUSE:Factory/.python-simplejson.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-simplejson"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-simplejson/python-simplejson.changes      
2013-10-25 11:32:29.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-simplejson.new/python-simplejson.changes 
2013-11-04 13:41:17.000000000 +0100
@@ -6,0 +7,6 @@
+Mon Oct 21 13:33:34 UTC 2013 - [email protected]
+
+- update to 3.3.1:
+  * JSONDecodeError exceptions can now be pickled
+
+-------------------------------------------------------------------

Old:
----
  simplejson-3.3.0.tar.gz

New:
----
  simplejson-3.3.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-simplejson.spec ++++++
--- /var/tmp/diff_new_pack.QMzIOz/_old  2013-11-04 13:41:19.000000000 +0100
+++ /var/tmp/diff_new_pack.QMzIOz/_new  2013-11-04 13:41:19.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-simplejson
-Version:        3.3.0
+Version:        3.3.1
 Release:        0
 Url:            http://github.com/simplejson/simplejson
 Summary:        Simple, fast, extensible JSON encoder/decoder for Python

++++++ simplejson-3.3.0.tar.gz -> simplejson-3.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.3.0/CHANGES.txt 
new/simplejson-3.3.1/CHANGES.txt
--- old/simplejson-3.3.0/CHANGES.txt    2013-05-08 08:04:12.000000000 +0200
+++ new/simplejson-3.3.1/CHANGES.txt    2013-10-05 20:54:41.000000000 +0200
@@ -1,3 +1,8 @@
+Version 3.3.1 released 2013-10-05
+
+* JSONDecodeError exceptions can now be pickled
+  https://github.com/simplejson/simplejson/pull/78
+
 Version 3.3.0 released 2013-05-07
 
 * Unpaired surrogates once again pass through the decoder, to match older
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.3.0/PKG-INFO 
new/simplejson-3.3.1/PKG-INFO
--- old/simplejson-3.3.0/PKG-INFO       2013-05-08 11:30:45.000000000 +0200
+++ new/simplejson-3.3.1/PKG-INFO       2013-10-05 20:56:43.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: simplejson
-Version: 3.3.0
+Version: 3.3.1
 Summary: Simple, fast, extensible JSON encoder/decoder for Python
 Home-page: http://github.com/simplejson/simplejson
 Author: Bob Ippolito
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.3.0/conf.py new/simplejson-3.3.1/conf.py
--- old/simplejson-3.3.0/conf.py        2013-05-08 08:04:12.000000000 +0200
+++ new/simplejson-3.3.1/conf.py        2013-10-05 20:55:12.000000000 +0200
@@ -44,7 +44,7 @@
 # The short X.Y version.
 version = '3.3'
 # The full version, including alpha/beta/rc tags.
-release = '3.3.0'
+release = '3.3.1'
 
 # There are two options for replacing |today|: either, you set today to some
 # non-false value, then it is used:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.3.0/setup.py 
new/simplejson-3.3.1/setup.py
--- old/simplejson-3.3.0/setup.py       2013-05-08 08:04:12.000000000 +0200
+++ new/simplejson-3.3.1/setup.py       2013-10-05 20:55:09.000000000 +0200
@@ -8,7 +8,7 @@
     DistutilsPlatformError
 
 IS_PYPY = hasattr(sys, 'pypy_translation_info')
-VERSION = '3.3.0'
+VERSION = '3.3.1'
 DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"
 
 with open('README.rst', 'r') as f:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.3.0/simplejson/__init__.py 
new/simplejson-3.3.1/simplejson/__init__.py
--- old/simplejson-3.3.0/simplejson/__init__.py 2013-05-08 08:04:12.000000000 
+0200
+++ new/simplejson-3.3.1/simplejson/__init__.py 2013-10-05 20:55:06.000000000 
+0200
@@ -98,7 +98,7 @@
     Expecting property name: line 1 column 3 (char 2)
 """
 from __future__ import absolute_import
-__version__ = '3.3.0'
+__version__ = '3.3.1'
 __all__ = [
     'dump', 'dumps', 'load', 'loads',
     'JSONDecoder', 'JSONDecodeError', 'JSONEncoder',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.3.0/simplejson/scanner.py 
new/simplejson-3.3.1/simplejson/scanner.py
--- old/simplejson-3.3.0/simplejson/scanner.py  2013-02-22 00:37:09.000000000 
+0100
+++ new/simplejson-3.3.1/simplejson/scanner.py  2013-10-05 20:53:51.000000000 
+0200
@@ -41,6 +41,9 @@
         else:
             self.endlineno, self.endcolno = None, None
 
+    def __reduce__(self):
+        return self.__class__, (self.msg, self.doc, self.pos, self.end)
+
 
 def linecol(doc, pos):
     lineno = doc.count('\n', 0, pos) + 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.3.0/simplejson/tests/test_errors.py 
new/simplejson-3.3.1/simplejson/tests/test_errors.py
--- old/simplejson-3.3.0/simplejson/tests/test_errors.py        2013-02-21 
18:31:29.000000000 +0100
+++ new/simplejson-3.3.1/simplejson/tests/test_errors.py        2013-10-05 
20:53:51.000000000 +0200
@@ -1,4 +1,4 @@
-import sys
+import sys, pickle
 from unittest import TestCase
 
 import simplejson as json
@@ -33,3 +33,19 @@
                 self.fail('Expected JSONDecodeError')
             self.assertEqual(err.lineno, 1)
             self.assertEqual(err.colno, 10)
+
+    def test_error_is_pickable(self):
+        err = None
+        try:
+            json.loads('{}\na\nb')
+        except json.JSONDecodeError:
+            err = sys.exc_info()[1]
+        else:
+            self.fail('Expected JSONDecodeError')
+        s = pickle.dumps(err)
+        e = pickle.loads(s)
+
+        self.assertEquals(err.msg, e.msg)
+        self.assertEquals(err.doc, e.doc)
+        self.assertEquals(err.pos, e.pos)
+        self.assertEquals(err.end, e.end)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to