3030import ctypes as _ct
3131
3232try :
33- import namedtuple as _nt
33+ from collections import namedtuple
3434except ImportError : # pre 2.6 behaviour
35- import nt as _nt
35+ from drmaa . nt import namedtuple
3636
3737__version__ = "$Revision$" [11 :- 2 ]
3838
6868 OutOfMemoryException ,)
6969
7070Version = _h .Version
71- JobInfo = _nt . namedtuple ("JobInfo" ,
71+ JobInfo = namedtuple ("JobInfo" ,
7272 """jobId hasExited hasSignal terminatedSignal
7373 hasCoreDump wasAborted exitStatus resourceUsage""" )
74- # FileTransferMode = _nt. namedtuple("FileTransferMode",
74+ # FileTransferMode = namedtuple("FileTransferMode",
7575# """transferInputStream transferOutputStream
7676# transferErrorStream""")
7777
@@ -359,7 +359,7 @@ def runBulkJobs(jobTemplate, beginIndex, endIndex, step):
359359 @staticmethod
360360 def control (jobId , operation ):
361361 """\
362- Used to hold, release, suspend, resume, or kill the job identified by jobId.
362+ Used to hold, release, suspend, resume, or kill the job identified by jobId.
363363
364364:Parameters:
365365 jobId : string
@@ -429,7 +429,7 @@ def synchronize(jobIds, timeout=-1, dispose=False):
429429timeout has elapsed, all the jobs have been waited on or there was an
430430interrupt. If the invocation exits on timeout, an ExitTimeoutException
431431is thrown. The caller should check system time before and after this
432- call in order to be sure of how much time has passed.
432+ call in order to be sure of how much time has passed.
433433"""
434434 if dispose : d = 1
435435 else : d = 0
@@ -439,7 +439,7 @@ def synchronize(jobIds, timeout=-1, dispose=False):
439439 @staticmethod
440440 def wait (jobId , timeout = - 1 ):
441441 """\
442- Wait for a job with jobId to finish execution or fail.
442+ Wait for a job with jobId to finish execution or fail.
443443
444444:Parameters:
445445 `jobId` : str
@@ -449,7 +449,7 @@ def wait(jobId, timeout=-1):
449449 jobId, this routine will wait for any job from the session
450450 `timeout` : float
451451 The timeout value is used to specify the desired behavior when a
452- result is not immediately available.
452+ result is not immediately available.
453453
454454 The value `Session.TIMEOUT_WAIT_FOREVER` may be specified to wait
455455 indefinitely for a result. The value `Session.TIMEOUT_NO_WAIT` may
0 commit comments