Browse Source

Fix warning in mustclose decorator

tags/nilmdb-1.1
Jim Paris 9 years ago
parent
commit
52e674a192
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      nilmdb/utils/mustclose.py

+ 2
- 1
nilmdb/utils/mustclose.py View File

@@ -38,7 +38,8 @@ def must_close(errorfile = sys.stderr, wrap_verify = False):

@wrap_class_method
def close(orig, self, *args, **kwargs):
del self._must_close
if "_must_close" in self.__dict__:
del self._must_close
return orig(self, *args, **kwargs)

# Optionally wrap all other functions


Loading…
Cancel
Save