[pypy-svn] r15531 - pypy/dist/pypy/objspace/std
tismer at codespeak.net
tismer at codespeak.net
Wed Aug 3 06:23:58 CEST 2005
Author: tismer
Date: Wed Aug 3 06:23:57 2005
New Revision: 15531
Modified:
pypy/dist/pypy/objspace/std/longobject.py
Log:
small cosmetic changes
Modified: pypy/dist/pypy/objspace/std/longobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/longobject.py (original)
+++ pypy/dist/pypy/objspace/std/longobject.py Wed Aug 3 06:23:57 2005
@@ -590,7 +590,7 @@
return %(opname)s__Long_Long(space, w_long1, w_long2)
""" % {'opname': opname}, '', 'exec')
- getattr(StdObjSpace.MM, opname).register(globals()['%s_ovr__Int_Int' %opname], W_IntObject, W_IntObject, order=1)
+ getattr(StdObjSpace.MM, opname).register(globals()['%s_ovr__Int_Int' % opname], W_IntObject, W_IntObject, order=1)
# unary ops
for opname in ['neg', 'abs']:
@@ -600,7 +600,7 @@
return %(opname)s__Long(space, w_long1)
""" % {'opname': opname}
- getattr(StdObjSpace.MM, opname).register(globals()['%s_ovr__Int' %opname], W_IntObject, order=1)
+ getattr(StdObjSpace.MM, opname).register(globals()['%s_ovr__Int' % opname], W_IntObject, order=1)
# pow
def pow_ovr__Int_Int_None(space, w_int1, w_int2, w_none3):
@@ -1597,7 +1597,7 @@
# than the sign bit).
if intmask(x) < 0 and (sign > 0 or (x << 1) != 0):
raise OverflowError
- return intmask(x*sign)
+ return intmask(x * sign)
def _hash(v):
# This is designed so that Python ints and longs with the
More information about the Pypy-commit
mailing list