Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str If CompareIn Str NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call AttributeLoad Str attr NameLoad If BoolOpOr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore BinOpSub AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareNotIn NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A The operating system file-like object implementation. N/A stat N/A os N/A pysmdev dfvfs dependencies dfvfs.file_io file_io dfvfs.lib errors dfvfs.lib py2to3 N/A N/A N/A dependencies CheckModuleVersion pysmdev OSFile N/A N/A file_io FileIO N/A N/A Class that implements a file-like object using os. __init__ N/A N/A self resolver_context N/A N/A N/A Initializes the file-like object.

    Args:
      resolver_context: the resolver context (instance of resolver.Context).
     N/A N/A N/A N/A super OSFile self __init__ resolver_context N/A N/A self _file_object None N/A N/A self _size 0 N/A _Close N/A N/A self N/A N/A N/A Closes the file-like object. N/A N/A N/A N/A self _file_object close N/A N/A self _file_object None N/A _Open N/A N/A self path_spec mode N/A None rb N/A N/A Opens the file-like object defined by path specification.

    Args:
      path_spec: optional path specification (instance of PathSpec).
      mode: optional file access mode. The default is 'rb' read-only binary.

    Raises:
      AccessError: if the access to open the file was denied.
      IOError: if the file-like object could not be opened.
      PathSpecError: if the path specification is incorrect.
      ValueError: if the path specification is invalid.
     N/A N/A path_spec N/A N/A N/A ValueError Missing path specification. N/A N/A N/A path_spec HasParent N/A N/A N/A N/A errors PathSpecError Unsupported path specification with parent. N/A location N/A getattr path_spec location None N/A N/A location None N/A N/A N/A N/A errors PathSpecError Path specification missing location. N/A N/A N/A is_device N/A N/A pysmdev check_device location N/A N/A N/A IOError N/A exception N/A N/A exception_string N/A str exception N/A N/A N/A isinstance exception_string N/A py2to3 UNICODE_TYPE N/A N/A exception_string N/A N/A py2to3 UNICODE_TYPE exception_string errors replace N/A N/A  access denied  exception_string N/A N/A N/A N/A errors AccessError N/A N/A Access denied to file: {0:s} with error: {1:s} format location exception_string N/A is_device False N/A N/A is_device N/A N/A N/A N/A stat_info N/A N/A os stat location N/A N/A N/A OSError N/A exception N/A N/A N/A IOError N/A N/A Unable to open file with error: {0:s}. format exception N/A N/A N/A N/A stat S_ISCHR N/A stat_info st_mode N/A N/A stat S_ISBLK N/A stat_info st_mode N/A N/A is_device True N/A is_device N/A N/A N/A self _file_object N/A N/A pysmdev handle N/A N/A N/A N/A self _file_object open location mode mode N/A N/A self _size N/A N/A self _file_object media_size N/A N/A N/A self _file_object N/A open location mode mode N/A N/A self _size N/A stat_info st_size N/A read N/A N/A self size N/A None N/A N/A Reads a byte string from the file-like object at the current offset.

    The function will read a byte string of the specified size or
    all of the remaining data if no size was specified.

    Args:
      size: Optional integer value containing the number of bytes to read.
            Default is all remaining data (None).

    Returns:
      A byte string containing the data read.

    Raises:
      IOError: if the read failed.
     N/A N/A N/A self _is_open N/A N/A N/A IOError Not opened. N/A N/A size None N/A N/A size N/A N/A self _size N/A N/A N/A self _file_object tell N/A N/A N/A N/A self _file_object read size N/A seek N/A N/A self offset whence N/A N/A os SEEK_SET N/A N/A Seeks an offset within the file-like object.

    Args:
      offset: The offset to seek.
      whence: Optional value that indicates whether offset is an absolute
              or relative position within the file.

    Raises:
      IOError: if the seek failed.
     N/A N/A N/A self _is_open N/A N/A N/A IOError Not opened. N/A N/A whence N/A N/A os SEEK_SET N/A os SEEK_CUR N/A os SEEK_END N/A N/A N/A IOError Unsupported whence. N/A N/A N/A N/A self _file_object seek offset whence N/A get_offset N/A N/A self N/A N/A N/A Returns the current offset into the file-like object.

    Raises:
      IOError: if the file-like object has not been opened.
     N/A N/A N/A self _is_open N/A N/A N/A IOError Not opened. N/A N/A N/A N/A self _file_object tell N/A get_size N/A N/A self N/A N/A N/A Returns the size of the file-like object.

    Raises:
      IOError: if the file-like object has not been opened.
     N/A N/A N/A self _is_open N/A N/A N/A IOError Not opened. N/A N/A self _size N/A N/A