Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56255:5f66e41b15fb
Date: 2012-07-20 10:40 +0200
http://bitbucket.org/pypy/pypy/changeset/5f66e41b15fb/
Log: backout 05f5e3396044
diff --git a/pypy/module/unicodedata/interp_ucd.py
b/pypy/module/unicodedata/interp_ucd.py
--- a/pypy/module/unicodedata/interp_ucd.py
+++ b/pypy/module/unicodedata/interp_ucd.py
@@ -240,9 +240,8 @@
V = VBase + (SIndex % NCount) / TCount;
T = TBase + SIndex % TCount;
if T == TBase:
- lgt = j + 2 - resultlen
- if lgt > 0:
- result.extend([0] * (lgt + 10))
+ if j + 2 > resultlen:
+ result.extend([0] * (j + 2 - resultlen + 10))
resultlen = len(result)
result[j] = L
result[j + 1] = V
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit