Author: Matti Picus <[email protected]>
Branch: win32-cleanup2
Changeset: r54919:a01d4f624819
Date: 2012-05-06 23:08 +0300
http://bitbucket.org/pypy/pypy/changeset/a01d4f624819/
Log: revert unintentional change
diff --git a/pypy/rlib/runicode.py b/pypy/rlib/runicode.py
--- a/pypy/rlib/runicode.py
+++ b/pypy/rlib/runicode.py
@@ -505,8 +505,9 @@
pos = 0
if byteorder == 'native':
if size >= 4:
- bom = ((ord(s[iorder[3]]) << 24) | (ord(s[iorder[2]]) << 16) |
- (ord(s[iorder[1]]) << 8) | ord(s[iorder[0]]))
+ bom = intmask(
+ (ord(s[iorder[3]]) << 24) | (ord(s[iorder[2]]) << 16) |
+ (ord(s[iorder[1]]) << 8) | ord(s[iorder[0]]))
if BYTEORDER == 'little':
if bom == BOM32_DIRECT:
pos += 4
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit