Commit a0b609aa authored by André Anjos's avatar André Anjos 💬
Browse files

Avoid leaving open file descriptor hanging

parent 9f8212e9
Pipeline #11104 passed with stages
in 11 minutes and 1 second
......@@ -81,8 +81,9 @@ class Interface(BaseInterface):
def files(self):
basedir = pkg_resources.resource_filename(__name__, '')
filelist = os.path.join(basedir, 'files.txt')
with open(filelist, 'rt') as f:
return [os.path.join(basedir, k.strip()) for k in \
open(filelist, 'rt').readlines() if k.strip()]
f.readlines() if k.strip()]
def type(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment