We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7496011 + 2656578 commit 1b45a91Copy full SHA for 1b45a91
pywavefront/parser.py
@@ -42,8 +42,9 @@ class Parser(object):
42
strict = False
43
44
def read_file(self, file_name):
45
- for line in open(file_name, 'r'):
46
- self.parse(line, dir=os.path.dirname(file_name))
+ with open(file_name, 'r') as file:
+ for line in file:
47
+ self.parse(line, dir=os.path.dirname(file_name))
48
49
def parse(self, line, dir):
50
"""Determine what type of line we are and dispatch
0 commit comments