[pypy-commit] pypy stdlib-2.7.8: Fixed translation

alex_gaynor noreply at buildbot.pypy.org
Thu Aug 28 01:51:49 CEST 2014


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: stdlib-2.7.8
Changeset: r73107:b223e8747096
Date: 2014-08-27 16:51 -0700
http://bitbucket.org/pypy/pypy/changeset/b223e8747096/

Log:	Fixed translation

diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py
--- a/rpython/rlib/runicode.py
+++ b/rpython/rlib/runicode.py
@@ -906,6 +906,7 @@
     elif inShift:
         pos = shiftOutStartPos # back off output
 
+    assert pos >= 0
     return result.build()[:pos], pos
 
 def unicode_encode_utf_7(s, size, errors, errorhandler=None):


More information about the pypy-commit mailing list