From 54b557ab164498ed42244a68ade33ea53398641c Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sat, 28 Jun 2014 13:58:01 -0500 Subject: [PATCH] Initialize _file in MetaStoreReader before open So that __del__() will work properly if open fails. Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bup/index.py b/lib/bup/index.py index b99e6d3..794ff9f 100644 --- a/lib/bup/index.py +++ b/lib/bup/index.py @@ -30,6 +30,7 @@ class Error(Exception): class MetaStoreReader: def __init__(self, filename): + self._file = None self._file = open(filename, 'rb') def close(self): -- 2.39.2