Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56254:0dc956dd9a95
Date: 2012-07-20 10:40 +0200
http://bitbucket.org/pypy/pypy/changeset/0dc956dd9a95/
Log: backout aba9f3942e92
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
@@ -227,10 +227,7 @@
space.wrap('invalid normalization form'))
strlen = space.len_w(w_unistr)
- lgt = (strlen + strlen / 10 + 10)
- if lgt < 0:
- lgt = 0
- result = [0] * lgt
+ result = [0] * (strlen + strlen / 10 + 10)
j = 0
resultlen = len(result)
# Expand the character
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit