Commit 63977eae authored by Guido van Rossum's avatar Guido van Rossum

Don't use a 2.2-ism in U64.

parent 35139193
...@@ -160,7 +160,8 @@ def main(): ...@@ -160,7 +160,8 @@ def main():
explain.get(code) or "*** unknown code ***") explain.get(code) or "*** unknown code ***")
def U64(s): def U64(s):
return struct.unpack(">Q", s)[0] h, v = unpack(">II", s)
return (long(h) << 32) + v
def addcommas(n): def addcommas(n):
sign, s = '', str(n) sign, s = '', str(n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment