Show More
@@ -11,7 +11,7 b' Test how largefiles abort in case the di' | |||||
11 | > _origcopyfileobj = shutil.copyfileobj |
|
11 | > _origcopyfileobj = shutil.copyfileobj | |
12 | > def copyfileobj(fsrc, fdst, length=16*1024): |
|
12 | > def copyfileobj(fsrc, fdst, length=16*1024): | |
13 | > # allow journal files (used by transaction) to be written |
|
13 | > # allow journal files (used by transaction) to be written | |
14 | > if 'journal.' in fdst.name: |
|
14 | > if b'journal.' in fdst.name: | |
15 | > return _origcopyfileobj(fsrc, fdst, length) |
|
15 | > return _origcopyfileobj(fsrc, fdst, length) | |
16 | > fdst.write(fsrc.read(4)) |
|
16 | > fdst.write(fsrc.read(4)) | |
17 | > raise IOError(errno.ENOSPC, os.strerror(errno.ENOSPC)) |
|
17 | > raise IOError(errno.ENOSPC, os.strerror(errno.ENOSPC)) |
General Comments 0
You need to be logged in to leave comments.
Login now