Commits

Benjamin Peterson committed 05bf817

formatting fix

  • Participants
  • Parent commits 0c7bf54

Comments (0)

Files changed (1)

File pypy/rpython/module/ll_os.py

                            ('tms_stime', rffi.INT),
                            ('tms_cutime', rffi.INT),
                            ('tms_cstime', rffi.INT)])
-        
-        GID_T = platform.SimpleType('gid_t',rffi.INT) 
-        #TODO right now is used only in getgroups, may need to update other functions like setgid
-                           
+
+        GID_T = platform.SimpleType('gid_t',rffi.INT)
+        #TODO right now is used only in getgroups, may need to update other
+        #functions like setgid
 
     SEEK_SET = platform.DefinedConstantInteger('SEEK_SET')
     SEEK_CUR = platform.DefinedConstantInteger('SEEK_CUR')
     @registering_if(os, 'getegid')
     def register_os_getegid(self):
         return self.extdef_for_os_function_returning_int('getegid')
-        
+
     @registering_if(os, 'getgroups')
     def register_os_getgroups(self):
         GP = rffi.CArrayPtr(self.GID_T)
-        c_getgroups = self.llexternal('getgroups',[rffi.INT, GP],rffi.INT)
+        c_getgroups = self.llexternal('getgroups', [rffi.INT, GP], rffi.INT)
 
         def getgroups_llimpl():
             groups = lltype.malloc(GP.TO, 0, flavor='raw')
                 if n >= 0:
                     lltype.free(groups, flavor='raw')
                     groups = lltype.malloc(GP.TO, n, flavor='raw')
-                    n = c_getgroups(n,groups)
+                    n = c_getgroups(n, groups)
                     result = [groups[i] for i in range(n)]
                     if n >= 0:
                         return result
             finally:
                 lltype.free(groups, flavor='raw')
 
-        return extdef([],[self.GID_T],llimpl=getgroups_llimpl, export_name="ll_os.ll_getgroups")
+        return extdef([], [self.GID_T], llimpl=getgroups_llimpl,
+                      export_name="ll_os.ll_getgroups")
 
     @registering_if(os, 'getpgrp')
     def register_os_getpgrp(self):