Package duplicity :: Module misc
[hide private]
[frames] | no frames]

Module misc

source code

Miscellaneous classes and methods

Classes [hide private]
  MiscError
Signifies a miscellaneous error...
  FileVolumeWriter
Split up an incoming fileobj into multiple volumes on disk
  BufferedFile
Buffer file open for reading, so reads will happen in fixed sizes
Functions [hide private]
 
copyfileobj(infp, outfp, byte_count=-1)
Copy byte_count bytes from infp to outfp, or all if byte_count < 0
source code
 
copyfileobj_close(infp, outfp)
Copy infp to outfp, closing afterwards
source code
Variables [hide private]
  __package__ = 'duplicity'
Function Details [hide private]

copyfileobj(infp, outfp, byte_count=-1)

source code 

Copy byte_count bytes from infp to outfp, or all if byte_count < 0

Returns the number of bytes actually written (may be less than byte_count if find eof. Does not close either fileobj.