Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pscript for openSUSE:Factory 
checked in at 2022-10-06 07:42:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pscript (Old)
 and      /work/SRC/openSUSE:Factory/.python-pscript.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pscript"

Thu Oct  6 07:42:14 2022 rev:8 rq:1008171 version:0.7.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pscript/python-pscript.changes    
2022-01-03 10:49:45.163588105 +0100
+++ /work/SRC/openSUSE:Factory/.python-pscript.new.2275/python-pscript.changes  
2022-10-06 07:42:24.660714944 +0200
@@ -1,0 +2,6 @@
+Tue Oct  4 23:20:51 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to 0.7.7 
+  bump version
+
+-------------------------------------------------------------------

Old:
----
  pscript-0.7.6.tar.gz

New:
----
  pscript-0.7.7.tar.gz

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

Other differences:
------------------
++++++ python-pscript.spec ++++++
--- /var/tmp/diff_new_pack.j0K6NE/_old  2022-10-06 07:42:25.104715932 +0200
+++ /var/tmp/diff_new_pack.j0K6NE/_new  2022-10-06 07:42:25.112715950 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pscript
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define modname pscript
 Name:           python-pscript
-Version:        0.7.6
+Version:        0.7.7
 Release:        0
 Summary:        Python to JavaScript compiler
 License:        BSD-2-Clause

++++++ pscript-0.7.6.tar.gz -> pscript-0.7.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pscript-0.7.6/docs/releasenotes.rst 
new/pscript-0.7.7/docs/releasenotes.rst
--- old/pscript-0.7.6/docs/releasenotes.rst     2021-09-08 13:09:30.000000000 
+0200
+++ new/pscript-0.7.7/docs/releasenotes.rst     2022-01-10 11:54:12.000000000 
+0100
@@ -2,6 +2,11 @@
 Release notes
 -------------
 
+**v0.7.6** (09-09-2021)
+
+* Fix for with-statement when ``return`` is used in the context.
+* Early support type hints in the code (by Jennifer Taylor).
+
 
 **v0.7.5** (04-01-2021)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pscript-0.7.6/pscript/__init__.py 
new/pscript-0.7.7/pscript/__init__.py
--- old/pscript-0.7.6/pscript/__init__.py       2021-09-08 13:09:30.000000000 
+0200
+++ new/pscript-0.7.7/pscript/__init__.py       2022-01-10 11:54:12.000000000 
+0100
@@ -241,7 +241,7 @@
 
 """
 
-__version__ = '0.7.6'
+__version__ = '0.7.7'
 
 import sys
 import logging
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pscript-0.7.6/pscript/stdlib.py 
new/pscript-0.7.7/pscript/stdlib.py
--- old/pscript-0.7.6/pscript/stdlib.py 2021-09-08 13:09:30.000000000 +0200
+++ new/pscript-0.7.7/pscript/stdlib.py 2022-01-10 11:54:12.000000000 +0100
@@ -667,7 +667,8 @@
 
 METHODS['endswith'] = """function (x) { // nargs: 1
     if (this.constructor !== String) return this.KEY.apply(this, arguments);
-    return this.lastIndexOf(x) == this.length - x.length;
+    var last_index = this.lastIndexOf(x);
+    return last_index == this.length - x.length && last_index >= 0;
 }"""
 
 METHODS['expandtabs'] = """function (tabsize) { // nargs: 0 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pscript-0.7.6/pscript/tests/test_parser3.py 
new/pscript-0.7.7/pscript/tests/test_parser3.py
--- old/pscript-0.7.6/pscript/tests/test_parser3.py     2021-09-08 
13:09:30.000000000 +0200
+++ new/pscript-0.7.7/pscript/tests/test_parser3.py     2022-01-10 
11:54:12.000000000 +0100
@@ -536,6 +536,7 @@
         assert evalpy('"foo".endswith("foo")') == 'true'
         assert evalpy('"".endswith("foo")') == 'false'
         assert evalpy('"".endswith("")') == 'true'
+        assert evalpy('"a".endswith("bb")') == 'false'  # See issue #66
     
     def test_startswith(self):
         assert evalpy('"foobla".startswith("foo")') == 'true'

Reply via email to