Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Expr Str If CompareLt NameLoad Num body Return TupleLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareGt NameLoad Num body Expr Call NameLoad NameLoad BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr orelse AugAssignBitAnd NameStore UnaryOpInvert AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr orelse AugAssignBitAnd NameStore UnaryOpInvert AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str While NameLoad body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body If UnaryOpNot BoolOpAnd AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Raise decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Raise Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse Raise ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body If BoolOpAnd AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Return NameLoad orelse Raise decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults AttributeLoad NameLoad attr body Expr Str If BoolOpOr BoolOpAnd CompareGtE AttributeLoad NameLoad attr Num CompareLt AttributeLoad NameLoad attr Num CompareGtE AttributeLoad NameLoad attr Num body Return TryExcept body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TryFinally body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpBitXor Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A Utility functions wrapping other functions.

 N/A sys N/A time N/A socket N/A errno N/A tempfile N/A fcntl N/A os N/A select N/A logging TestDelay N/A N/A duration N/A N/A N/A Sleep for a fixed amount of time.

  @type duration: float
  @param duration: the sleep duration, in seconds
  @rtype: (boolean, str)
  @return: False for negative value, and an accompanying error message;
      True otherwise (and msg is None)

   N/A N/A duration 0 N/A N/A N/A False Invalid sleep duration N/A N/A N/A time sleep duration N/A N/A True None N/A CloseFdNoError N/A N/A fd retries N/A 5 N/A N/A Close a file descriptor ignoring errors.

  @type fd: int
  @param fd: the file descriptor
  @type retries: int
  @param retries: how many retries to make, in case we get any
      other error than EBADF

   N/A N/A N/A N/A N/A os close fd N/A N/A N/A OSError N/A err N/A N/A N/A N/A err errno N/A errno EBADF N/A N/A N/A retries 0 N/A N/A N/A CloseFdNoError fd N/A retries 1 N/A SetCloseOnExecFlag N/A N/A fd enable N/A N/A N/A Sets or unsets the close-on-exec flag on a file descriptor.

  @type fd: int
  @param fd: File descriptor
  @type enable: bool
  @param enable: Whether to set or unset it.

   N/A flags N/A N/A fcntl fcntl fd N/A fcntl F_GETFD N/A enable N/A N/A flags N/A fcntl FD_CLOEXEC N/A N/A flags N/A N/A fcntl FD_CLOEXEC N/A N/A N/A fcntl fcntl fd N/A fcntl F_SETFD flags N/A SetNonblockFlag N/A N/A fd enable N/A N/A N/A Sets or unsets the O_NONBLOCK flag on on a file descriptor.

  @type fd: int
  @param fd: File descriptor
  @type enable: bool
  @param enable: Whether to set or unset it

   N/A flags N/A N/A fcntl fcntl fd N/A fcntl F_GETFL N/A enable N/A N/A flags N/A os O_NONBLOCK N/A N/A flags N/A N/A os O_NONBLOCK N/A N/A N/A fcntl fcntl fd N/A fcntl F_SETFL flags N/A RetryOnSignal N/A N/A fn N/A args kwargs N/A N/A Calls a function again if it failed due to EINTR.

   N/A True N/A N/A N/A N/A N/A fn args kwargs N/A N/A N/A EnvironmentError N/A err N/A N/A N/A N/A err errno N/A errno EINTR N/A N/A N/A N/A N/A N/A socket error N/A select error N/A err N/A N/A N/A N/A N/A err args N/A N/A N/A err args N/A 0 N/A errno EINTR N/A N/A N/A IgnoreProcessNotFound N/A N/A fn N/A args kwargs N/A N/A Ignores ESRCH when calling a process-related function.

  ESRCH is raised when a process is not found.

  @rtype: bool
  @return: Whether process was found

   N/A N/A N/A N/A fn args kwargs N/A N/A N/A EnvironmentError N/A err N/A N/A N/A N/A err errno N/A errno ESRCH N/A N/A False N/A N/A True N/A IgnoreSignals N/A N/A fn N/A args kwargs N/A N/A Tries to call a function ignoring failures due to EINTR.

   N/A N/A N/A N/A fn args kwargs N/A N/A N/A EnvironmentError N/A err N/A N/A N/A N/A err errno N/A errno EINTR N/A N/A None N/A N/A N/A N/A N/A N/A select error N/A socket error N/A err N/A N/A N/A N/A err args N/A N/A N/A err args N/A 0 N/A errno EINTR N/A N/A None N/A N/A N/A GetClosedTempfile N/A N/A N/A args kwargs N/A N/A Creates a temporary file and returns its path.

   N/A N/A fd path N/A N/A tempfile mkstemp args kwargs N/A N/A CloseFdNoError fd N/A path N/A IsExecutable N/A N/A filename N/A N/A N/A Checks whether a file exists and is executable.

  @type filename: string
  @param filename: Filename
  @rtype: bool

   N/A N/A N/A N/A N/A os path isfile filename N/A N/A os access filename N/A os X_OK N/A ResetTempfileModule N/A N/A _time N/A N/A time time N/A N/A Resets the random name generator of the tempfile module.

  This function should be called after C{os.fork} in the child process to
  ensure it creates a newly seeded random generator. Otherwise it would
  generate the same random parts as the parent process. If several processes
  race for the creation of a temporary file, this could lead to one not getting
  a temporary name.

   N/A N/A N/A N/A N/A sys hexversion 34014192 N/A N/A sys hexversion 50331648 N/A N/A sys hexversion 50463728 N/A N/A N/A N/A N/A lock N/A tempfile _once_lock N/A N/A N/A lock acquire N/A N/A N/A N/A tempfile _name_sequence N/A N/A N/A N/A N/A N/A tempfile _name_sequence rng seed N/A N/A hash N/A _time N/A N/A os getpid N/A N/A N/A N/A lock release N/A N/A N/A AttributeError N/A N/A N/A N/A logging critical The tempfile module misses at least one of the '_once_lock' and '_name_sequence' attributes N/A