[pypy-commit] pypy default: whoops

2019-01-20 Thread mattip
Author: Matti Picus 
Branch: 
Changeset: r95680:eb58462b4225
Date: 2019-01-20 19:09 +0200
http://bitbucket.org/pypy/pypy/changeset/eb58462b4225/

Log:whoops

diff --git a/rpython/translator/platform/windows.py 
b/rpython/translator/platform/windows.py
--- a/rpython/translator/platform/windows.py
+++ b/rpython/translator/platform/windows.py
@@ -86,7 +86,7 @@
 else:
 log.msg('Running "%s" succeeded' %(vcvars,))
 except Exception as e:
-log.msg('Running "%s" failed: "%s"', (vcvars, str(e)))
+log.msg('Running "%s" failed: "%s"' % (vcvars, str(e)))
 return None
 
 stdout = stdout.replace("\r\n", "\n")
___
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit


[pypy-commit] pypy py3.5: merge default into branch

2019-01-20 Thread mattip
Author: Matti Picus 
Branch: py3.5
Changeset: r95681:49aade4a2c18
Date: 2019-01-20 19:10 +0200
http://bitbucket.org/pypy/pypy/changeset/49aade4a2c18/

Log:merge default into branch

diff --git a/rpython/translator/platform/windows.py 
b/rpython/translator/platform/windows.py
--- a/rpython/translator/platform/windows.py
+++ b/rpython/translator/platform/windows.py
@@ -86,7 +86,7 @@
 else:
 log.msg('Running "%s" succeeded' %(vcvars,))
 except Exception as e:
-log.msg('Running "%s" failed: "%s"', (vcvars, str(e)))
+log.msg('Running "%s" failed: "%s"' % (vcvars, str(e)))
 return None
 
 stdout = stdout.replace("\r\n", "\n")
___
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit


[pypy-commit] pypy unicode-utf8-py3: test, fix for capitalize returning more than one codepoint

2019-01-20 Thread mattip
Author: Matti Picus 
Branch: unicode-utf8-py3
Changeset: r95678:488e3a462f8d
Date: 2019-01-20 11:35 +0200
http://bitbucket.org/pypy/pypy/changeset/488e3a462f8d/

Log:test, fix for capitalize returning more than one codepoint

diff --git a/pypy/objspace/std/test/test_unicodeobject.py 
b/pypy/objspace/std/test/test_unicodeobject.py
--- a/pypy/objspace/std/test/test_unicodeobject.py
+++ b/pypy/objspace/std/test/test_unicodeobject.py
@@ -407,6 +407,8 @@
 # check with Ll chars with no upper - nothing changes here
 assert ('\u019b\u1d00\u1d86\u0221\u1fb7'.capitalize() ==
 '\u019b\u1d00\u1d86\u0221\u1fb7')
+# cpython issue 17252 for i_dot
+assert u'h\u0130'.capitalize() == u'H\u0069\u0307'
 
 def test_changed_in_unicodedata_version_8(self):
 assert u'\u025C'.upper() == u'\uA7AB'
diff --git a/pypy/objspace/std/unicodeobject.py 
b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -855,8 +855,9 @@
 for c in codes:
 builder.append_code(c)
 for ch in it:
-ch = unicodedb.tolower(ch)
-builder.append_code(ch)
+ch = unicodedb.tolower_full(ch)
+for ch1 in ch:
+builder.append_code(ch1)
 return self.from_utf8builder(builder)
 
 @unwrap_spec(width=int, w_fillchar=WrappedDefault(u' '))
___
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit


[pypy-commit] pypy unicode-utf8-py3: make doc test pass

2019-01-20 Thread mattip
Author: Matti Picus 
Branch: unicode-utf8-py3
Changeset: r95683:87ee2e64d118
Date: 2019-01-21 08:16 +0200
http://bitbucket.org/pypy/pypy/changeset/87ee2e64d118/

Log:make doc test pass

diff --git a/pypy/doc/whatsnew-pypy3-head.rst b/pypy/doc/whatsnew-pypy3-head.rst
--- a/pypy/doc/whatsnew-pypy3-head.rst
+++ b/pypy/doc/whatsnew-pypy3-head.rst
@@ -5,15 +5,6 @@
 .. this is the revision after release-pypy3.5-v6.0
 .. startrev: 580e3e26cd32
 
-.. branch: hroncok/fix-multiprocessing-regression-on-newer--1524656522151
+.. branch: unicode-utf8
 
-Fix multiprocessing regression on newer glibcs
-
-.. branch: py3.5-user-site-impl
-
-Use implementation-specific site directories in sysconfig like in Python2
-
-.. branch: py3.5-reverse-debugger
-
-The reverse-debugger branch has been merged.  For more information, see
-https://bitbucket.org/pypy/revdb
+Use utf-8 internally to represent unicode strings
___
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit


[pypy-commit] pypy unicode-utf8-py3: fix 98c9d750a001

2019-01-20 Thread mattip
Author: Matti Picus 
Branch: unicode-utf8-py3
Changeset: r95682:53455a64a497
Date: 2019-01-21 08:08 +0200
http://bitbucket.org/pypy/pypy/changeset/53455a64a497/

Log:fix 98c9d750a001

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -433,7 +433,7 @@
 if not final:
 pos -= 1
 break
-if pos < end and rutf8._invalid_byte_2_of_4(ordch1, s[pos]):
+if pos < end and rutf8._invalid_byte_2_of_4(ordch1, 
ord(s[pos])):
 msg = "invalid continuation byte"
 elif pos + 1 < end and rutf8._invalid_byte_3_of_4(ord(s[pos + 
1])):
 msg = "invalid continuation byte"
___
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit