Hello community,

here is the log from the commit of package python-json_tricks for 
openSUSE:Factory checked in at 2018-08-08 14:54:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-json_tricks (Old)
 and      /work/SRC/openSUSE:Factory/.python-json_tricks.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-json_tricks"

Wed Aug  8 14:54:04 2018 rev:2 rq:627949 version:3.12.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-json_tricks/python-json_tricks.changes    
2018-06-08 23:13:04.753234708 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-json_tricks.new/python-json_tricks.changes   
    2018-08-08 14:54:48.665679933 +0200
@@ -1,0 +2,7 @@
+Tue Aug  7 15:28:52 UTC 2018 - [email protected]
+
+- Update to 3.12.2
+  * Fix for unterminated string exception in object containing
+    empty string
+
+-------------------------------------------------------------------

Old:
----
  json_tricks-3.12.1.tar.gz

New:
----
  json_tricks-3.12.2.tar.gz

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

Other differences:
------------------
++++++ python-json_tricks.spec ++++++
--- /var/tmp/diff_new_pack.blOQWy/_old  2018-08-08 14:54:49.097680647 +0200
+++ /var/tmp/diff_new_pack.blOQWy/_new  2018-08-08 14:54:49.097680647 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-json_tricks
-Version:        3.12.1
+Version:        3.12.2
 Release:        0
 Summary:        Extra features for Python's JSON
 License:        BSD-3-Clause

++++++ json_tricks-3.12.1.tar.gz -> json_tricks-3.12.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/json_tricks-3.12.1/PKG-INFO 
new/json_tricks-3.12.2/PKG-INFO
--- old/json_tricks-3.12.1/PKG-INFO     2018-05-19 11:12:50.000000000 +0200
+++ new/json_tricks-3.12.2/PKG-INFO     2018-07-12 21:24:35.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: json_tricks
-Version: 3.12.1
+Version: 3.12.2
 Summary: Extra features for Python's JSON: comments, order, numpy, pandas, 
datetimes, and many more! Simple but customizable.
 Home-page: https://github.com/mverleg/pyjson_tricks
 Author: Mark V
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/json_tricks-3.12.1/json_tricks/comment.py 
new/json_tricks-3.12.2/json_tricks/comment.py
--- old/json_tricks-3.12.1/json_tricks/comment.py       2017-12-01 
20:22:08.000000000 +0100
+++ new/json_tricks-3.12.2/json_tricks/comment.py       2018-07-12 
21:17:33.000000000 +0200
@@ -4,7 +4,7 @@
 
 def strip_comment_line_with_symbol(line, start):
        parts = line.split(start)
-       counts = [len(findall(r'(?:^|[^"\\]|(?:\\\\|\\")+)(")', part)) for part 
in parts]
+       counts = [len(findall(r'(?:^|[^"\\]|(?:\\\\|\\")+)(")(?!")', part)) for 
part in parts]
        total = 0
        for nr, count in enumerate(counts):
                total += count
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/json_tricks-3.12.1/json_tricks.egg-info/PKG-INFO 
new/json_tricks-3.12.2/json_tricks.egg-info/PKG-INFO
--- old/json_tricks-3.12.1/json_tricks.egg-info/PKG-INFO        2018-05-19 
11:12:50.000000000 +0200
+++ new/json_tricks-3.12.2/json_tricks.egg-info/PKG-INFO        2018-07-12 
21:24:34.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: json-tricks
-Version: 3.12.1
+Version: 3.12.2
 Summary: Extra features for Python's JSON: comments, order, numpy, pandas, 
datetimes, and many more! Simple but customizable.
 Home-page: https://github.com/mverleg/pyjson_tricks
 Author: Mark V
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/json_tricks-3.12.1/setup.py 
new/json_tricks-3.12.2/setup.py
--- old/json_tricks-3.12.1/setup.py     2018-05-19 11:12:30.000000000 +0200
+++ new/json_tricks-3.12.2/setup.py     2018-07-12 21:23:12.000000000 +0200
@@ -32,7 +32,7 @@
        license='Revised BSD License (LICENSE.txt)',
        keywords=['json', 'numpy', 'OrderedDict', 'comments', 'pandas', 'pytz',
                'enum', 'encode', 'decode', 'serialize', 'deserialize'],
-       version='3.12.1',
+       version='3.12.2',
        packages=['json_tricks'],
        include_package_data=True,
        zip_safe=True,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/json_tricks-3.12.1/tests/test_bare.py 
new/json_tricks-3.12.2/tests/test_bare.py
--- old/json_tricks-3.12.1/tests/test_bare.py   2018-05-17 21:39:46.000000000 
+0200
+++ new/json_tricks-3.12.2/tests/test_bare.py   2018-07-12 20:16:13.000000000 
+0200
@@ -464,3 +464,21 @@
                ('li', [1, 2, 3]),
                ('lock', None),
        ))
+
+
+def test_empty_string_with_url():
+       """ Originally for https://github.com/mverleg/pyjson_tricks/issues/51 
"""
+       txt = '{"foo": "", "bar": "http://google.com"}'
+       assert txt == strip_comments(txt), strip_comments(txt)
+       txt = '{"foo": "", "bar": "http://google.com"}'
+       assert txt == dumps(loads(txt, ignore_comments=False))
+       assert txt == dumps(loads(txt, ignore_comments=True))
+       txt = '{"a": "", "b": "//", "c": ""}'
+       assert txt == dumps(loads(txt))
+       txt = '{"a": "", "b": "/*", "c": ""}'
+       assert txt == dumps(loads(txt))
+       txt = '{"//": "//"}'
+       assert txt == dumps(loads(txt))
+       txt = '{"///": "////*/*"}'
+       assert txt == dumps(loads(txt))
+


Reply via email to