- Timestamp:
- 10/07/08 23:14:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PBSQuery.py
r166 r167 63 63 import string 64 64 import sys 65 import re 65 66 66 67 class PBSError(Exception): … … 269 270 def get_jobs(self, unique=None): 270 271 """Returns a list of the currently running job-id('s) on the node""" 271 jobs = self.get_value('jobs')272 if jobs :273 re.compile('[^\\ /]\\d+[^/.]').findall( jobstring )272 jobstring = self.get_value('jobs') 273 if jobstring: 274 joblist = re.compile('[^\\ /]\\d+[^/.]').findall( jobstring ) 274 275 if not unique: 275 return job s276 return joblist 276 277 else: 277 278 uniq = {} 278 for job in job s:279 for job in joblist: 279 280 uniq[job] = 1 280 281 return uniq.keys()
Note: See TracChangeset
for help on using the changeset viewer.