Commits

Kimmo Varis  committed 12c7ef8

Fix few pylint issues.

  • Participants
  • Parent commits 81a2a40

Comments (0)

Files changed (1)

 
 import optparse
 import os
-import os.path
 import subprocess
 import sys
 
         self._readprojects()
 
     def testlist(self):
+        '''Return the list of tests.'''
+
         return self._testlist
 
     def _listprofiles(self, directory):
 
         for fullpath, relpath in self._filelist:
             #print 'Reading file: %s' % relpath
-            f = open(fullpath, 'r')
+            project = open(fullpath, 'r')
             target = ''
             destdir = ''
             allread = False
             while not allread:
-                line = f.readline()
+                line = project.readline()
                 if line == '':
                     allread = True
                     break
                     destdir = line[line.find('=') + 1:]
                     destdir = destdir.strip()
                     #print 'File: %s Dest: %s' % (relpath, dest)
-            f.close()
+            project.close()
 
             if target != '':
                 path = os.path.dirname(fullpath)
         self._options = None
         self._arguments = None
         self._testdir = None
+        self._testlist = None
 
     def parsecmdline(self):
         usage = 'usage: %prog [options] [testdir]'