[pypy-svn] r35314 - pypy/dist/pypy/rpython/ootypesystem

arigo at codespeak.net arigo at codespeak.net
Tue Dec 5 18:09:36 CET 2006


Author: arigo
Date: Tue Dec  5 18:09:33 2006
New Revision: 35314

Modified:
   pypy/dist/pypy/rpython/ootypesystem/ll_str.py
Log:
(pedronis, arigo)

More of these!  Removed.


Modified: pypy/dist/pypy/rpython/ootypesystem/ll_str.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/ll_str.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/ll_str.py	Tue Dec  5 18:09:33 2006
@@ -1,17 +1,14 @@
 from pypy.rpython.ootypesystem.ootype import new, oostring, StringBuilder
 
-def const(c):
-    return c
-
 def ll_int_str(repr, i):
     return ll_int2dec(i)
 
 def ll_int2dec(i):
-    return oostring(i, const(10))
+    return oostring(i, 10)
 
 def ll_int2hex(i, addPrefix):
     if not addPrefix:
-        return oostring(i, const(16))
+        return oostring(i, 16)
 
     buf = new(StringBuilder)
     if i<0:
@@ -20,12 +17,12 @@
 
     buf.ll_append_char('0')
     buf.ll_append_char('x')
-    buf.ll_append(oostring(i, const(16)))
+    buf.ll_append(oostring(i, 16))
     return buf.ll_build()
 
 def ll_int2oct(i, addPrefix):
     if not addPrefix or i==0:
-        return oostring(i, const(8))
+        return oostring(i, 8)
 
     buf = new(StringBuilder)
     if i<0:
@@ -33,8 +30,8 @@
         buf.ll_append_char('-')
 
     buf.ll_append_char('0')
-    buf.ll_append(oostring(i, const(8)))
+    buf.ll_append(oostring(i, 8))
     return buf.ll_build()
 
 def ll_float_str(repr, f):
-    return oostring(f, const(-1))
+    return oostring(f, -1)



More information about the Pypy-commit mailing list