Commits

Elliot Peele  committed 29827ad

add missing import and cast fds to ints

  • Participants
  • Parent commits 73423b2

Comments (0)

Files changed (1)

File testutils/procutils.py

 """
 
 import os
+import errno
 
 __all__ = ('ProcInfo', )
 
     def getFileDescriptors(cls, pid):
         fdPath ='/proc/%s/fd' % pid
         s = set()
-        for fd in os.listdir(fdPath):
+        for fd in map(int, os.listdir(fdPath)):
             try:
                 contents = cls.getFileDescriptorContents(pid, fd)
             except OSError, e: