Author: Alex Gaynor <alex.gay...@gmail.com>
Branch: 
Changeset: r73756:9a4cb1502f11
Date: 2014-10-01 11:56 -0700
http://bitbucket.org/pypy/pypy/changeset/9a4cb1502f11/

Log:    random trailing whitespace clean up

diff --git a/rpython/rtyper/tool/rffi_platform.py 
b/rpython/rtyper/tool/rffi_platform.py
--- a/rpython/rtyper/tool/rffi_platform.py
+++ b/rpython/rtyper/tool/rffi_platform.py
@@ -88,11 +88,11 @@
         _compilation_info_ = eci
         WORKS = Works()
     configure(CConfig)
-    
+
 def checkcompiles(expression, c_header_source, include_dirs=None):
     """Check if expression compiles. If not, returns False"""
     return has(expression, c_header_source, include_dirs)
-    
+
 def sizeof(name, eci, **kwds):
     class CConfig:
         _compilation_info_ = eci
@@ -109,7 +109,7 @@
     if _memory_alignment is None:
         if sys.platform == 'win32':
             _memory_alignment = 4
-        else:    
+        else:
             S = getstruct('struct memory_alignment_test', """
                struct memory_alignment_test {
                    double d;
@@ -132,7 +132,7 @@
         self.result = {}
         self.info = info
         self.entries = entries
-        
+
     def get_entry_result(self, entry):
         try:
             return self.result[entry]
@@ -216,7 +216,6 @@
         for key, entry in entries:
             writer.write_entry(key, entry)
 
-        f = writer.f
         writer.start_main()
         for key, entry in entries:
             writer.write_entry_main(key)
@@ -361,7 +360,7 @@
         self.name = name
         self.ctype_hint = ctype_hint
         self.ifdef = ifdef
-        
+
     def prepare_code(self):
         if self.ifdef is not None:
             yield '#ifdef %s' % (self.ifdef,)
@@ -540,7 +539,7 @@
 class Has(CConfigSingleEntry):
     def __init__(self, name):
         self.name = name
-    
+
     def question(self, ask_gcc):
         try:
             ask_gcc(self.name + ';')
@@ -772,7 +771,7 @@
     On Windows, various configurations may be tried to compile the
     given eci object.  These configurations are a list of dicts,
     containing:
-    
+
     - prefix: if an absolute path, will prefix each include and
               library directories.  If a relative path, the external
               directory is searched for directories which names start
@@ -780,13 +779,13 @@
               chosen, and becomes the prefix.
 
     - include_dir: prefix + include_dir is added to the include directories
-    
+
     - library_dir: prefix + library_dir is added to the library directories
     """
 
     if sys.platform != 'win32':
         configurations = []
-    
+
     key = (name, eci)
     try:
         return _cache[key]
@@ -852,7 +851,7 @@
         # since config_external_library does not use a platform kwarg,
         # somehow using a platform kw arg make the merge fail in
         # config_external_library
-        platform = None    
+        platform = None
     else:
         library_dir = ''
         libraries = ['gc', 'dl']
@@ -869,7 +868,7 @@
 
 if __name__ == '__main__':
     doc = """Example:
-    
+
        rffi_platform.py  -h sys/types.h  -h netinet/in.h
                            'struct sockaddr_in'
                            sin_port  INT
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to