Skip to content

Commit

Permalink
do not use python with statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ideawu committed Oct 13, 2014
1 parent 16d89db commit 098345e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/cpy/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def find_imports(self, srcfile, base_dir):
return set()
self.found_files.add(srcfile)

lines = []
with open(srcfile, 'rt') as fp:
lines = fp.readlines()
fp = open(srcfile, 'rt')
lines = fp.readlines()
fp.close()

imports = []
for line in lines:
Expand Down

0 comments on commit 098345e

Please sign in to comment.