소스 검색

Remove obsolete TODO

The fnctl.flock call does not use LOCK_NB, so if it fails with an OSError, that is Really Bad™ and can't be handled cleanly.
master
JustAnotherArchivist 3 년 전
부모
커밋
733506aed7
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. +0
    -1
      qwarc/warc.py

+ 0
- 1
qwarc/warc.py 파일 보기

@@ -256,7 +256,6 @@ class WARC:

def _write_meta_warc(self, callback):
filename = f'{self._prefix}-meta.warc.gz'
#TODO: Handle OSError on fcntl.flock and retry
self._file = open(filename, 'ab')
try:
fcntl.flock(self._file.fileno(), fcntl.LOCK_EX)


불러오는 중...
취소
저장