[pypy-svn] r16349 - in pypy/dist/pypy: lib module/_codecs module/recparser objspace/std rpython rpython/test translator/llvm2

arigo at codespeak.net arigo at codespeak.net
Wed Aug 24 11:17:10 CEST 2005


Author: arigo
Date: Wed Aug 24 11:17:07 2005
New Revision: 16349

Modified:
   pypy/dist/pypy/lib/binascii.py
   pypy/dist/pypy/module/_codecs/app_codecs.py
   pypy/dist/pypy/module/recparser/pyparser.py
   pypy/dist/pypy/objspace/std/iterobject.py
   pypy/dist/pypy/rpython/rbuiltin.py
   pypy/dist/pypy/rpython/test/test_rstr.py
   pypy/dist/pypy/translator/llvm2/pyxwrapper.py
Log:
untabify.



Modified: pypy/dist/pypy/lib/binascii.py
==============================================================================
--- pypy/dist/pypy/lib/binascii.py	(original)
+++ pypy/dist/pypy/lib/binascii.py	Wed Aug 24 11:17:07 2005
@@ -456,38 +456,38 @@
     return ''.join(result)
 
 crctab_hqx = [
-	0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
-	0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
-	0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6,
-	0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de,
-	0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485,
-	0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d,
-	0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4,
-	0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc,
-	0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823,
-	0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b,
-	0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12,
-	0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a,
-	0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41,
-	0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49,
-	0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70,
-	0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78,
-	0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f,
-	0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067,
-	0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e,
-	0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256,
-	0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d,
-	0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
-	0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c,
-	0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634,
-	0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab,
-	0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3,
-	0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a,
-	0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92,
-	0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9,
-	0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1,
-	0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8,
-	0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0,
+        0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
+        0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
+        0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6,
+        0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de,
+        0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485,
+        0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d,
+        0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4,
+        0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc,
+        0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823,
+        0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b,
+        0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12,
+        0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a,
+        0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41,
+        0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49,
+        0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70,
+        0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78,
+        0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f,
+        0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067,
+        0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e,
+        0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256,
+        0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d,
+        0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
+        0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c,
+        0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634,
+        0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab,
+        0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3,
+        0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a,
+        0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92,
+        0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9,
+        0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1,
+        0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8,
+        0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0,
 ]
 
 def crc_hqx(s, crc):
@@ -618,7 +618,7 @@
         crc = crc_32_tab[(crc ^ long(ord(c))) & 0xffL] ^ (crc >> 8)
         #/* Note:  (crc >> 8) MUST zero fill on left
 
-	result = crc ^ 0xffffffffL
+        result = crc ^ 0xffffffffL
 
     return result
 

Modified: pypy/dist/pypy/module/_codecs/app_codecs.py
==============================================================================
--- pypy/dist/pypy/module/_codecs/app_codecs.py	(original)
+++ pypy/dist/pypy/module/_codecs/app_codecs.py	Wed Aug 24 11:17:07 2005
@@ -101,7 +101,7 @@
     codecs.register_error that can handle ValueErrors.
     """
     if encoding == None:
- 	encoding = sys.getdefaultencoding()
+        encoding = sys.getdefaultencoding()
     if isinstance(encoding,str):
         encoder = lookup(encoding)[0]
         if encoder and isinstance(errors,str):
@@ -123,7 +123,7 @@
     able to handle ValueErrors.
     """
     if encoding == None:
-	encoding = sys.getdefaultencoding()
+        encoding = sys.getdefaultencoding()
     if isinstance(encoding,str):
         decoder = lookup(encoding)[1]
         if decoder and isinstance(errors,str):
@@ -374,10 +374,10 @@
     """
     pass
 ##    return (PyUnicode_EncodeMBCS(
-##			       (obj), 
-##			       len(obj),
-##			       errors),
-##		    len(obj))
+##                             (obj), 
+##                             len(obj),
+##                             errors),
+##                  len(obj))
     
 
 def ascii_encode( obj,errors='strict'):
@@ -508,10 +508,10 @@
 
 ## indicate whether a UTF-7 character is special i.e. cannot be directly
 ##       encoded:
-##	   0 - not special
-##	   1 - special
-##	   2 - whitespace (optional)
-##	   3 - RFC2152 Set O (optional)
+##         0 - not special
+##         1 - special
+##         2 - whitespace (optional)
+##         3 - RFC2152 Set O (optional)
     
 utf7_special = [
     1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1,
@@ -656,7 +656,7 @@
                     
                 elif SPECIAL(ch,0,0) :
                     raise  UnicodeDecodeError,"unexpected special character"
-	                
+                        
                 else:  
                     p +=  ch 
             else:
@@ -799,11 +799,11 @@
             pos += 1
             continue        
 #endif
-	#/* Map UTF-16 surrogate pairs to Unicode \UXXXXXXXX escapes */
+        #/* Map UTF-16 surrogate pairs to Unicode \UXXXXXXXX escapes */
         elif (ord(ch) >= 0xD800 and ord(ch) < 0xDC00):
             pos += 1
             ch2 = s[pos]
-	    
+            
             if (ord(ch2) >= 0xDC00 and ord(ch2) <= 0xDFFF):
                 ucs = (((ord(ch) & 0x03FF) << 10) | (ord(ch2) & 0x03FF)) + 0x00010000
                 p += '\\'
@@ -811,10 +811,10 @@
                 p += '%08x'%ucs
                 pos += 1
                 continue
-	   
-	    #/* Fall through: isolated surrogates are copied as-is */
-	    pos -= 1
-	    
+           
+            #/* Fall through: isolated surrogates are copied as-is */
+            pos -= 1
+            
         #/* Map 16-bit characters to '\uxxxx' */
         if (ord(ch) >= 256):
             p += '\\'
@@ -879,8 +879,8 @@
     if not type(unistr) == unicode:
         raise TypeError
     return PyUnicode_EncodeASCII(unicode(unistr),
-				 len(unicode),
-				None)
+                                 len(unicode),
+                                None)
 
 def PyUnicode_DecodeUTF16Stateful(s,size,errors,byteorder='native',consumed=None):
 
@@ -908,19 +908,19 @@
             bom = (ord(s[ihi]) << 8) | ord(s[ilo])
 #ifdef BYTEORDER_IS_LITTLE_ENDIAN
             if sys.byteorder == 'little':
-        	    if (bom == 0xFEFF):
-        	        q += 2
-        	        bo = -1
-        	    elif bom == 0xFFFE:
-        	        q += 2
-        	        bo = 1
+                    if (bom == 0xFEFF):
+                        q += 2
+                        bo = -1
+                    elif bom == 0xFFFE:
+                        q += 2
+                        bo = 1
             else:
-        	    if bom == 0xFEFF:
-        	        q += 2
-        	        bo = 1
-        	    elif bom == 0xFFFE:
-        	        q += 2
-        	        bo = -1
+                    if bom == 0xFEFF:
+                        q += 2
+                        bo = 1
+                    elif bom == 0xFFFE:
+                        q += 2
+                        bo = -1
     elif byteorder == 'little':
         bo = -1
     else:
@@ -941,32 +941,32 @@
 
     while (q < len(s)):
     
-    	#/* remaining bytes at the end? (size should be even) */
-    	if (len(s)-q<2):
-    	    if (consumed):
+        #/* remaining bytes at the end? (size should be even) */
+        if (len(s)-q<2):
+            if (consumed):
                 break
-    	    errmsg = "truncated data"
-    	    startinpos = q
-    	    endinpos = len(s)
-    	    unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
-#    	    /* The remaining input chars are ignored if the callback
-##    	       chooses to skip the input */
-    
-    	ch = (ord(s[q+ihi]) << 8) | ord(s[q+ilo])
-    	q += 2
-    
-    	if (ch < 0xD800 or ch > 0xDFFF):
-    	   p += unichr(ch)
-    	   continue
+            errmsg = "truncated data"
+            startinpos = q
+            endinpos = len(s)
+            unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
+#           /* The remaining input chars are ignored if the callback
+##             chooses to skip the input */
+    
+        ch = (ord(s[q+ihi]) << 8) | ord(s[q+ilo])
+        q += 2
+    
+        if (ch < 0xD800 or ch > 0xDFFF):
+           p += unichr(ch)
+           continue
     
-	#/* UTF-16 code pair: */
+        #/* UTF-16 code pair: */
         if (q >= len(s)):
             errmsg = "unexpected end of data"
             startinpos = q-2
             endinpos = len(s)
-    	    unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
+            unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
 
-    	if (0xD800 <= ch and ch <= 0xDBFF):
+        if (0xD800 <= ch and ch <= 0xDBFF):
             ch2 = (ord(s[q+ihi]) << 8) | ord(s[q+ilo])
             q += 2
             if (0xDC00 <= ch2 and ch2 <= 0xDFFF):
@@ -980,16 +980,16 @@
                 continue
 
             else:
-    	        errmsg = "illegal UTF-16 surrogate"
+                errmsg = "illegal UTF-16 surrogate"
                 startinpos = q-4
                 endinpos = startinpos+2
-    	        unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
-    	   
-	errmsg = "illegal encoding"
-	startinpos = q-2
-	endinpos = startinpos+2
-    	unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
-	
+                unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
+           
+        errmsg = "illegal encoding"
+        startinpos = q-2
+        endinpos = startinpos+2
+        unicode_call_errorhandler(errors,'utf-16',errmsg,s,startinpos,endinpos,True)
+        
     return p, q, bo
 
 # moved out of local scope, especially because it didn't
@@ -1045,7 +1045,7 @@
     pass
 ####    /* If there are no characters, bail now! */
 ##    if (size==0)
-##	    return ""
+##          return ""
 ##    from ctypes import *
 ##    WideCharToMultiByte = windll.kernel32.WideCharToMultiByte
 ####    /* First get the size of the result */
@@ -1129,7 +1129,7 @@
                 endinpos = size 
                 res = unicode_call_errorhandler(
                                     errors, "utf8", errmsg,
-			            s,  startinpos, endinpos)
+                                    s,  startinpos, endinpos)
                 p += res[0]
                 pos = res[1]
         if n == 0:
@@ -1186,13 +1186,13 @@
                         ((ord(s[pos+1]) & 0x3f) << 6) +\
                         (ord(s[pos+2]) & 0x3f)       
                         
-##		/* Note: UTF-8 encodings of surrogates are considered
-##		   legal UTF-8 sequences;
+##              /* Note: UTF-8 encodings of surrogates are considered
+##                 legal UTF-8 sequences;
 ##
-##		   XXX For wide builds (UCS-4) we should probably try
-##		       to recombine the surrogates into a single code
-##		       unit.
-##		*/
+##                 XXX For wide builds (UCS-4) we should probably try
+##                     to recombine the surrogates into a single code
+##                     unit.
+##              */
                 if c < 0x0800:
                     errmsg = "illegal encoding"
                     endinpos = startinpos+3
@@ -1225,7 +1225,7 @@
                 if ((c < 0x10000) or (c > 0x10ffff)):
                     #/* minimum value allowed for 4 byte encoding */
                     #/* maximum value allowed for UTF-16 */
-	   
+           
                     errmsg = "illegal encoding"
                     startinpos = pos
                     endinpos = startinpos+4
@@ -1252,15 +1252,15 @@
 ##        default:
 ##            /* Other sizes are only needed for UCS-4 */
             errmsg = "unsupported Unicode code range"
-    	    startinpos = pos
-    	    endinpos = startinpos+n
-    	    res = unicode_call_errorhandler(
+            startinpos = pos
+            endinpos = startinpos+n
+            res = unicode_call_errorhandler(
                      errors, "utf8", errmsg,
                      s,  startinpos, endinpos)
             p += res[0]
             pos = res[1]
             
-	#continue
+        #continue
 
     if (consumed):
         consumed = pos
@@ -1520,17 +1520,17 @@
 
     p = []
     for ch in s:
-#	/* Map 32-bit characters to '\Uxxxxxxxx' */
+#       /* Map 32-bit characters to '\Uxxxxxxxx' */
         if (ord(ch) >= 0x10000):
             p += '\\'
             p += 'U'
             p += '%08x'%(ord(ch))
         elif (ord(ch) >= 256) :
-#	/* Map 16-bit characters to '\uxxxx' */
+#       /* Map 16-bit characters to '\uxxxx' */
             p += '\\'
             p += 'u'
             p += '%04x'%(ord(ch))
-#	/* Copy everything else as-is */
+#       /* Copy everything else as-is */
         else:
             p += chr(ord(ch))
     
@@ -1566,7 +1566,7 @@
     inpos = 0
     res = []
     while (inpos<size):
-	#/* try to encode it */
+        #/* try to encode it */
         try:
             x = charmapencode_output(ord(p[inpos]),mapping)
             res += [x]
@@ -1587,7 +1587,7 @@
 ##                raise UnicodeEncodeError("charmap",p,inpos,inpos+1,
 ##                                        "character maps to <undefined>")
 ##    
-	    #/* done with this character => adjust input position */
+            #/* done with this character => adjust input position */
         inpos+=1
     return res
 
@@ -1602,8 +1602,8 @@
     p = []
     inpos = 0
     while (inpos< len(s)):
-	
-	#/* Get mapping (char ordinal -> integer, Unicode char or None) */
+        
+        #/* Get mapping (char ordinal -> integer, Unicode char or None) */
         ch = s[inpos]
         try:
             x = mapping[ord(ch)]
@@ -1645,8 +1645,8 @@
             continue        
         startinpos = pos
         #pos += 1
-##	/* \u-escapes are only interpreted iff the number of leading
-##	   backslashes is odd */
+##      /* \u-escapes are only interpreted iff the number of leading
+##         backslashes is odd */
         bs = pos
         while pos < size:
             if (s[pos] != '\\'):
@@ -1668,7 +1668,7 @@
             count = 8
         pos += 1
 
-	#/* \uXXXX with 4 hex digits, \Uxxxxxxxx with 8 */
+        #/* \uXXXX with 4 hex digits, \Uxxxxxxxx with 8 */
 
         i = 0
         x = 0

Modified: pypy/dist/pypy/module/recparser/pyparser.py
==============================================================================
--- pypy/dist/pypy/module/recparser/pyparser.py	(original)
+++ pypy/dist/pypy/module/recparser/pyparser.py	Wed Aug 24 11:17:07 2005
@@ -29,8 +29,8 @@
         for n in node.nodes:
             n.visit(self)
         n = len(node.nodes)
-	start = len(self.tuple_stack_w) - n
-	assert start >= 0   # annotator hint
+        start = len(self.tuple_stack_w) - n
+        assert start >= 0   # annotator hint
         l = [ space.wrap( node.name ) ] + self.tuple_stack_w[start:]
         del self.tuple_stack_w[start:]
         self.tuple_stack_w.append( space.newtuple( l ) )

Modified: pypy/dist/pypy/objspace/std/iterobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/iterobject.py	(original)
+++ pypy/dist/pypy/objspace/std/iterobject.py	Wed Aug 24 11:17:07 2005
@@ -80,7 +80,7 @@
         w_len = space.wrap(0)
         w_seqiter.w_seq = None
     else:
-	w_len =space.wrap(index)
+        w_len =space.wrap(index)
     if space.is_true(space.lt(w_len,space.wrap(0))):
         w_len = space.wrap(0)
     return w_len

Modified: pypy/dist/pypy/rpython/rbuiltin.py
==============================================================================
--- pypy/dist/pypy/rpython/rbuiltin.py	(original)
+++ pypy/dist/pypy/rpython/rbuiltin.py	Wed Aug 24 11:17:07 2005
@@ -105,8 +105,8 @@
 
 def rtype_builtin_int(hop):
     if isinstance(hop.args_s[0], annmodel.SomeString):
-	assert 1 <= hop.nb_args <= 2
-	return hop.args_r[0].rtype_int(hop)
+        assert 1 <= hop.nb_args <= 2
+        return hop.args_r[0].rtype_int(hop)
     assert hop.nb_args == 1
     return hop.args_r[0].rtype_int(hop)
 

Modified: pypy/dist/pypy/rpython/test/test_rstr.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_rstr.py	(original)
+++ pypy/dist/pypy/rpython/test/test_rstr.py	Wed Aug 24 11:17:07 2005
@@ -447,14 +447,14 @@
         res = int(s, base)
         return res
     for j in (10, 16, 2, 1, 36, 42, -3):
-	for i in range(len(s1)):
-	    try:
-		expected = fn(i, j)
-	    except ValueError:
-		interpret_raises(ValueError, fn, [i, j])
-	    else:
-		res = interpret(fn, [i, j])
-		assert res == expected
+        for i in range(len(s1)):
+            try:
+                expected = fn(i, j)
+            except ValueError:
+                interpret_raises(ValueError, fn, [i, j])
+            else:
+                res = interpret(fn, [i, j])
+                assert res == expected
 
 
 def test_char_mul_n():

Modified: pypy/dist/pypy/translator/llvm2/pyxwrapper.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/pyxwrapper.py	(original)
+++ pypy/dist/pypy/translator/llvm2/pyxwrapper.py	Wed Aug 24 11:17:07 2005
@@ -44,10 +44,10 @@
     append("    pass")
     append("")
     if use_boehm_gc:
-	append("cdef extern int GC_get_heap_size()")
-	append("")
-	append("def GC_get_heap_size_wrapper():")
-	append("    return GC_get_heap_size()")
+        append("cdef extern int GC_get_heap_size()")
+        append("")
+        append("def GC_get_heap_size_wrapper():")
+        append("    return GC_get_heap_size()")
         append("")
     append("def %s_wrapper(%s):" % (funcgen.ref.strip("%"), ", ".join(inputargs)))
     append("    result = __entrypoint__%s(%s)" % (funcgen.ref.strip("%"), ", ".join(inputargs)))



More information about the Pypy-commit mailing list