X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=subproc.py;h=69bd13bc5cff42debdd86326905e8e571220455d;hb=68438d614389f7011d78ed6b29d3a2ab13471c8b;hp=e3c2717da8a4207ba0a099e02d9278bebeda7dd0;hpb=d594d5acd1c256017e0343ba7910a127a319e2bd;p=bookmarks_db.git diff --git a/subproc.py b/subproc.py index e3c2717..69bd13b 100755 --- a/subproc.py +++ b/subproc.py @@ -540,11 +540,11 @@ class RecordFile: line = f.readline()[:-1] if line: try: - l = int(line) + _l = int(line) except ValueError: raise IOError(("corrupt %s file structure" % self.__class__.__name__)) - return f.read(l) + return f.read(_l) else: # EOF. return ''